Skip to content

Commit

Permalink
Disable showing onboarding modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jevonmao committed Sep 27, 2021
1 parent c55f380 commit e26b345
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct OnboardingView: View {
if AppVersionStatus.currentVersion == "1.2.6" {
showAlert = true
}
stayInPresentation = false
}, label: {
Text("Continue")
.font(.body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ struct OnboardingWrapperView<Content: View>: View {
var contentView: Content
var body: some View {
let versionStatus = AppVersionStatus.getVersionStatus()
let shouldPresent: Binding<Bool> = Binding(get: {return versionStatus != .stable || userSettings.developerSettings.alwaysShowOnboarding},
let shouldPresent: Binding<Bool> = Binding(get: {
let shouldShow = versionStatus != .stable || userSettings.developerSettings.alwaysShowOnboarding
let remoteOverride = globalRemoteConfig.configValue(forKey: "show_onboarding").boolValue
return shouldShow && remoteOverride
},
set: {_ in
fatalError("Should not be setting this value.")
})
Expand Down

0 comments on commit e26b345

Please sign in to comment.