From d3a790001a744c5d7ca37d36b9e78b3dd37624e8 Mon Sep 17 00:00:00 2001 From: Lumaa Date: Sun, 4 Feb 2024 10:50:21 +0100 Subject: [PATCH] Fix missing welcome view --- Threaded/Views/ContentView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Threaded/Views/ContentView.swift b/Threaded/Views/ContentView.swift index 44b3cbf..c81b73e 100644 --- a/Threaded/Views/ContentView.swift +++ b/Threaded/Views/ContentView.swift @@ -87,7 +87,7 @@ struct ContentView: View { func recognizeAccount() async { let appAccount: AppAccount? = AppAccount.loadAsCurrent() if appAccount == nil { - uniNavigator.presentedSheet = .welcome + uniNavigator.presentedCover = .welcome } else { //TODO: Fix this? (Fatal error: calling into SwiftUI on a non-main thread is not supported) accountManager.setClient(.init(server: appAccount!.server, oauthToken: appAccount!.oauthToken)) @@ -97,7 +97,7 @@ struct ContentView: View { if fetched == nil { accountManager.clear() appAccount!.clear() - uniNavigator.presentedSheet = .welcome + uniNavigator.presentedCover = .welcome } } }