File tree 4 files changed +17
-14
lines changed
4 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 786
786
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
787
787
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
788
788
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
789
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
789
790
LD_RUNPATH_SEARCH_PATHS = (
790
791
"$(inherited)",
791
792
"@executable_path/Frameworks",
792
793
);
793
- MARKETING_VERSION = 1.0.4 ;
794
+ MARKETING_VERSION = 1.0.5 ;
794
795
PRODUCT_BUNDLE_IDENTIFIER = com.ditectrev.cloudmasterswift;
795
796
PRODUCT_NAME = "CloudMaster Swift";
796
797
PROVISIONING_PROFILE_SPECIFIER = "";
821
822
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
822
823
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
823
824
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
825
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
824
826
LD_RUNPATH_SEARCH_PATHS = (
825
827
"$(inherited)",
826
828
"@executable_path/Frameworks",
827
829
);
828
- MARKETING_VERSION = 1.0.4 ;
830
+ MARKETING_VERSION = 1.0.5 ;
829
831
PRODUCT_BUNDLE_IDENTIFIER = com.ditectrev.cloudmasterswift;
830
832
PRODUCT_NAME = "CloudMaster Swift";
831
833
PROVISIONING_PROFILE_SPECIFIER = "";
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ struct ExamSummaryView: View {
12
12
// Helper variable to hide backbutton after Exam
13
13
let afterExam : Bool
14
14
15
- @Environment ( \. presentationMode) var presentationMode
15
+ @Environment ( \. presentationMode) var presentationMode
16
16
17
17
var body : some View {
18
18
VStack {
@@ -87,10 +87,10 @@ struct ExamSummaryView: View {
87
87
. navigationBarTitleDisplayMode ( . inline)
88
88
. navigationBarBackButtonHidden ( afterExam) // Hide back button based on the flag
89
89
. toolbar {
90
- if ( !afterExam ) {
91
- ToolbarItem ( placement : . principal ) {
92
- HStack {
93
- Spacer ( )
90
+ ToolbarItem ( placement : . principal ) {
91
+ HStack {
92
+ Spacer ( )
93
+ if !afterExam {
94
94
Button ( action: {
95
95
showDeleteConfirmation = true
96
96
} ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ struct ExamView: View {
26
26
}
27
27
28
28
var body : some View {
29
- NavigationStack {
29
+ NavigationView {
30
30
VStack {
31
31
if !questionLoader. questions. isEmpty {
32
32
let questions = Array ( questionLoader. questions. prefix ( questionCount) )
@@ -78,6 +78,12 @@ struct ExamView: View {
78
78
. foregroundColor ( . white)
79
79
. cornerRadius ( 10 )
80
80
}
81
+
82
+ if let examData = lastExamData {
83
+ NavigationLink ( destination: ExamSummaryView ( exam: examData, afterExam: true ) , isActive: $navigateToSummary) {
84
+ EmptyView ( )
85
+ }
86
+ }
81
87
}
82
88
83
89
Spacer ( )
@@ -92,11 +98,6 @@ struct ExamView: View {
92
98
Text ( " No Questions available! Please download course " )
93
99
}
94
100
}
95
- . navigationDestination ( isPresented: $navigateToSummary) {
96
- if let examData = lastExamData {
97
- ExamSummaryView ( exam: examData, afterExam: true )
98
- }
99
- }
100
101
}
101
102
. onAppear ( perform: startTimer)
102
103
. onDisappear {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct IntroView: View {
34
34
viewModel. downloadCourses ( favorites)
35
35
}
36
36
}
37
- . onChange ( of: viewModel. downloadCompleted) { completed, _ in
37
+ . onChange ( of: viewModel. downloadCompleted) { completed in
38
38
if completed {
39
39
isAppConfigured = true
40
40
}
You can’t perform that action at this time.
0 commit comments