Skip to content

Commit 602f774

Browse files
author
Benedikt Wagner
committed
render toolbar item without condition to support iOS15
1 parent e4d7a11 commit 602f774

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CloudMaster.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@
786786
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
787787
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
788788
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
789+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
789790
LD_RUNPATH_SEARCH_PATHS = (
790791
"$(inherited)",
791792
"@executable_path/Frameworks",
@@ -821,6 +822,7 @@
821822
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
822823
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
823824
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
825+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
824826
LD_RUNPATH_SEARCH_PATHS = (
825827
"$(inherited)",
826828
"@executable_path/Frameworks",

CloudMaster/Features/Exam/Views/ExamSummaryView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct ExamSummaryView: View {
1212
// Helper variable to hide backbutton after Exam
1313
let afterExam: Bool
1414

15-
@Environment(\.presentationMode) var presentationMode
15+
@Environment(\.presentationMode) var presentationMode
1616

1717
var body: some View {
1818
VStack {
@@ -87,10 +87,10 @@ struct ExamSummaryView: View {
8787
.navigationBarTitleDisplayMode(.inline)
8888
.navigationBarBackButtonHidden(afterExam) // Hide back button based on the flag
8989
.toolbar {
90-
if (!afterExam){
91-
ToolbarItem(placement: .principal) {
92-
HStack {
93-
Spacer()
90+
ToolbarItem(placement: .principal) {
91+
HStack {
92+
Spacer()
93+
if !afterExam {
9494
Button(action: {
9595
showDeleteConfirmation = true
9696
}) {

0 commit comments

Comments
 (0)