Skip to content

Commit

Permalink
Merge pull request #37 from techstartucalgary/login-register
Browse files Browse the repository at this point in the history
Fix: IOS 16+ Migration
  • Loading branch information
ParsaKargari authored Jan 5, 2024
2 parents 3ef0bf0 + dfed5f6 commit 239cc9c
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.env
dist
migrations
.vscode
2 changes: 2 additions & 0 deletions Rethread/Rethread.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -563,6 +564,7 @@
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Binary file not shown.
Binary file modified Rethread/Rethread/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Rethread/Rethread/Models/DatePickerModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ struct DatePickerModalView: View {
bl: 10,
br: 10
))
.onChange(of: currentMonth) { newValue, oldValue in
.onChange(of: currentMonth) { newValue in
currentDate = getCurrentMonth()
}
.onAppear(
Expand Down
2 changes: 1 addition & 1 deletion Rethread/Rethread/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct OnboardingView: View {
}
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
.animation(.default, value: currentStep)
.onChange(of: currentStep) { oldValue, newValue in
.onChange(of: currentStep) { newValue in
if newValue > 0 && selectedOptions[newValue - 1].isEmpty {
currentStep -= 1
}
Expand Down
2 changes: 1 addition & 1 deletion Rethread/Rethread/SignInView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct SignInView: View {
.padding()
.overlay(RoundedRectangle(cornerRadius: 8).stroke(Color.gray, lineWidth: 1))
.padding(.horizontal, 25)
.onChange(of: isPasswordVisible) {
.onChange(of: isPasswordVisible) { newValue in
isFieldFocus = isPasswordVisible ? .textField : .secureField
}
}
Expand Down
2 changes: 1 addition & 1 deletion Rethread/Rethread/SignUpView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct SignUpView: View {
TextField("MM / DD / YYYY", text: $formData.dateOfBirth )
.foregroundColor(Color.primaryTextColor)
.keyboardType(.numberPad)
.onChange(of: formData.dateOfBirth) { newValue, oldValue in
.onChange(of: formData.dateOfBirth) { newValue in
formData.dateOfBirth = formatDate(newValue)
}

Expand Down

0 comments on commit 239cc9c

Please sign in to comment.