Post

Replies

Boosts

Views

Activity

Reply to What restrictions does didReceiveRemoteNotification have when the app is started in background by the system?
Thank you. A conclusion to this topic is that I indeed had a crash in my application that only happened when it was launched in the background to receive the notification. A helpful technique that I knew about, but didn’t recall immediately, is to build and run the app with Xcode, but in the scheme options, set the “Launch” option from “Automatically” to “Wait for the executable to be launched”. This way, I can run the app on the device where it will be launched when it receives a remote notification, and the Xcode debugger is attached to the app and can easily be used for debugging.
Oct ’24
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.
Jun ’22
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.")             }           }         }     } }
Jun ’22
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