Post

Replies

Boosts

Views

Activity

Reply to "NO_CRASH_STACK + 0" Crash (only on testflight)
Check out this other thread which describes the root cause, which is Xcode versions. https://developer.apple.com/forums/thread/696197 I am one of the people affected. When I built an app for Testflight with Xcode 13.1 (App Store version), it crashes on launch when installed from TestFlight, as everyone describes. The same app built and uploaded with Xcode 13.2 RC (no code changes on my side, only build number bump) installs from Testflight and runs fine on both iOS 14 and 15.
Dec ’21
Reply to NavigationSplitView not working as shown in "What's new with SwiftUI" session
Thank you! I got exactly the same. I was building a simple list-detail interface with NavigationSplitView and wondering why it was not updating the detail contents. Wrapping the column content in ZStack helped. Just in case others hit it, here’s my code. struct Thing: Identifiable, Hashable {     let id: UUID     let name: String } struct ContentView: View {     let things: [Thing]     @State private var selectedThing: Thing?     var body: some View {         NavigationSplitView {             List(things, selection: $selectedThing) { thing in                 NavigationLink(value: thing) {                         Text("navlink: \(thing.name)")                 }             }         } detail: { // This is the ZStack wrapper, hopefully won’t be needed when 91311311 is fixed.           ZStack {             if let selectedThing {               Text("There is a thing: \(selectedThing.name)")             } else {               Text("There is no thing.")             }           }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Reply to Driving NavigationSplitView with something other than List?
I don’t need NavigationStack as my detail. What I meant is that NavigationSplitView behaves as stack on iPhone, yet it doesn’t seem to have the kind of programmatic control for navigation that NavigationStack has. If I had NavigationStack as my content/detail view, it wouldn’t help with controlling navigation on the first level (sidebar). I have seen the video. Everything about NavigationStack there looks great, but it doesn’t help me. All NavigationSplitView examples there are with a simple list in sidebar. It appears there is some magic going on with binding the List selection to NavigationSplitView state. I can’t figure out how it should behave with non-List or if it’s even possible.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22