mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-28 23:00:08 +00:00
ios: fix app crashing after onboarding (#7299)
This commit is contained in:
@@ -184,7 +184,11 @@ struct OnboardingConditionsView: View {
|
||||
private func completeOnboarding() {
|
||||
let m = ChatModel.shared
|
||||
onboardingStageDefault.set(.onboardingComplete)
|
||||
m.onboardingStage = .onboardingComplete
|
||||
// dismiss any presented onboarding sheet and defer the swap, so the deep onboarding
|
||||
// navigation stack isn't torn down mid-transition (crashes UIKit on completion)
|
||||
dismissAllSheets(animated: false) {
|
||||
m.onboardingStage = .onboardingComplete
|
||||
}
|
||||
}
|
||||
|
||||
private func enabledOperators(_ operators: [ServerOperator]) -> [ServerOperator]? {
|
||||
|
||||
Reference in New Issue
Block a user