Skip to content

Commit 24a799c

Browse files
Merge pull request #42 from Ditectrev/41-support-ios-15-or-16
41 support ios 15 or 16
2 parents 02d16a9 + 22a9177 commit 24a799c

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

CloudMaster.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,12 @@
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 = "";
@@ -821,11 +822,12 @@
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 = "";

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
}) {

CloudMaster/Features/Exam/Views/ExamView.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {

CloudMaster/Features/Intro/Views/IntroView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)