Post

Replies

Boosts

Views

Activity

Reply to SwiftUI NavigationLink in List on iOS 14
Thanks for the quick response! Attaching .id(UUID()) on iOS 13 has no effect, i.e. no flickering. The behaviour in iOS 14 is very strange. I have the issue in dynamic and static Cells, though with one exception: in a pure static list. I guess I have to find a way to selectively change only the ID of the NavigationLink active. The problem is, that my app is in production since march, build mostly upon SwiftUI. Now iOS 14 breaks a lot which might forces me to switch to UIKit. Also results of a @FetchedRequest update in iOS 13 in Lists automatically with animation but in iOS 14 they don't anymore :(
Sep ’20
Reply to Using NSPersistentCloudKitContainer causes crash for iOS 14
I encountered the same error in iOS 14. In my case the problem was, that after app launch I was running two processes, both starting a new background task on the PersistentContainer like this: persistentContainer.performBackgroundTask { (context) in ... Waiting for one task to finish until starting the next solved the problem for me. Hope this helps somebody. Previously I had no such problem running in iOS 13 though...
Sep ’20
Reply to Sheet presented is blank in iOS 14.x (@State variables not setting)
I have the same issue in iOS 14.0 - but not in every view and sometimes only on the iPad. My workaround which currently works looks something like this: struct ContentView: View { class SheetManager: ObservableObject { @Published var presentSheet = false @Published var activeSheet: ActiveSheet = .none enum ActiveSheet { case one case two case three case none } } @ObservedObject private var sheetManager = SheetManager() var body: some View { VStack { ... } .sheet(isPresented: self.$sheetManager.presentSheet) { if self.sheetManager.activeSheet == .none { EmptyView() } // etc. } } }
Sep ’20