File tree Expand file tree Collapse file tree 4 files changed +17
-14
lines changed
Expand file tree Collapse file tree 4 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 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",
792793 );
793- MARKETING_VERSION = 1.0.4 ;
794+ MARKETING_VERSION = 1.0.5 ;
794795 PRODUCT_BUNDLE_IDENTIFIER = com.ditectrev.cloudmasterswift;
795796 PRODUCT_NAME = "CloudMaster Swift";
796797 PROVISIONING_PROFILE_SPECIFIER = "";
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",
827829 );
828- MARKETING_VERSION = 1.0.4 ;
830+ MARKETING_VERSION = 1.0.5 ;
829831 PRODUCT_BUNDLE_IDENTIFIER = com.ditectrev.cloudmasterswift;
830832 PRODUCT_NAME = "CloudMaster Swift";
831833 PROVISIONING_PROFILE_SPECIFIER = "";
Original file line number Diff line number Diff 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 } ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ struct ExamView: View {
2626 }
2727
2828 var body : some View {
29- NavigationStack {
29+ NavigationView {
3030 VStack {
3131 if !questionLoader. questions. isEmpty {
3232 let questions = Array ( questionLoader. questions. prefix ( questionCount) )
@@ -78,6 +78,12 @@ struct ExamView: View {
7878 . foregroundColor ( . white)
7979 . cornerRadius ( 10 )
8080 }
81+
82+ if let examData = lastExamData {
83+ NavigationLink ( destination: ExamSummaryView ( exam: examData, afterExam: true ) , isActive: $navigateToSummary) {
84+ EmptyView ( )
85+ }
86+ }
8187 }
8288
8389 Spacer ( )
@@ -92,11 +98,6 @@ struct ExamView: View {
9298 Text ( " No Questions available! Please download course " )
9399 }
94100 }
95- . navigationDestination ( isPresented: $navigateToSummary) {
96- if let examData = lastExamData {
97- ExamSummaryView ( exam: examData, afterExam: true )
98- }
99- }
100101 }
101102 . onAppear ( perform: startTimer)
102103 . onDisappear {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct IntroView: View {
3434 viewModel. downloadCourses ( favorites)
3535 }
3636 }
37- . onChange ( of: viewModel. downloadCompleted) { completed, _ in
37+ . onChange ( of: viewModel. downloadCompleted) { completed in
3838 if completed {
3939 isAppConfigured = true
4040 }
You can’t perform that action at this time.
0 commit comments