Post

Replies

Boosts

Views

Activity

Reply to NavigationSplitView two and three column interfaces in the same app
I work on a predominantly SwiftUI app, but I managed to achieve this using two UISplitViewControllers and contain my SwiftUI views inside that. I basiccally made an outer two column UISplitViewController. The detail view there is a SwiftUI view that either shows one big view or a UIVIewRepresentable that houses another UISplitViewController, depending on sidebar selection. When that inner splitview is shown, I set the outer nav bar to hidden so just the inner splitview's navbar shows. It took a lot of fiddling with the column behaviours to get it to work just right, but it does work. Although once in a while I see crashes when rotating the iPad which may be attributed to SwiftUI trying to deal with two navigation controllers in the two different splitviews. I've also raised FB12586131 to ask that UISplitViewController and NavigationSplitView support proper switching between two and three column modes. All we really need is a way to hide the middle column only.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23
Reply to onGeometryChange: Assertion failed: Block was expected to execute on queue
I'm seeing the same thing. And there are no main thread restrictions on this API, nor should there be (especially in closure #1) since it doesn't modify UI. At any rate, if this needs to run on main, it should be called on main. We're also not seeing 100% crashes on this. It just happens sometimes. I will likely file a bug report, but I can not reproduce it 100%.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’25
Reply to Does originalTransactionId change if a user resubscribes?
This thread described the issue perfectly, but for a handful of our accounts, we're not seeing the same originalTransactionId being returned. https://developer.apple.com/forums/thread/777397 We call getAllSubscriptions with the originalTransactionId but are getting back a response with a completely different one. This started happening around Feb 25, 2025. And again, this is only for a tiny percentage of our accounts.
Topic: App & System Services SubTopic: StoreKit Tags:
Mar ’25
Reply to Apple Watch Simulator Won't Allow a Password to be Set
I'm still seeing this with Xcode 14beta6 simulator with watchOS9.0. FIled feedback: FB11429538
Replies
Boosts
Views
Activity
Sep ’22
Reply to Are there any APIs for Dynamic Island in iPhone 14 Pro?
Coming later this year: https://twitter.com/settern/status/1567617031427735552
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to NavigationSplitView two and three column interfaces in the same app
I work on a predominantly SwiftUI app, but I managed to achieve this using two UISplitViewControllers and contain my SwiftUI views inside that. I basiccally made an outer two column UISplitViewController. The detail view there is a SwiftUI view that either shows one big view or a UIVIewRepresentable that houses another UISplitViewController, depending on sidebar selection. When that inner splitview is shown, I set the outer nav bar to hidden so just the inner splitview's navbar shows. It took a lot of fiddling with the column behaviours to get it to work just right, but it does work. Although once in a while I see crashes when rotating the iPad which may be attributed to SwiftUI trying to deal with two navigation controllers in the two different splitviews. I've also raised FB12586131 to ask that UISplitViewController and NavigationSplitView support proper switching between two and three column modes. All we really need is a way to hide the middle column only.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to NavigationSplitView two and three column interfaces in the same app
Also worth noting that Apple does do two to three column transitions in the Music app on iPad. If you open Music in Landscape mode you see two columns. But if you tap Artists in the sidebar you see three columns. So I suggest filing Feedback asking for official support of this behaviour.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to Watch Complications (WidgetKit) do not show anything on device
I ran into the same problem with images, so I used a 512x512 SVG and it works fine. It may not be suitable for your images, but it is easier than making separate sized PNGs.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to How to enabled windowed recording mode in Instruments 11?
Anyone know where this option is in Instruments 15? Edit: Nevermind, it's there, but is disabled when you are actively paused or recording.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Xcode 15 console logging of system messages
You could use Self._printChanges in the meantime. I believe they print the same thing and that appears in the Xcode console.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode "Build documentation" not working with Swift Macro package in project
Is your Macros.moduleMap file in the GeneratedModuleMaps folder (as opposed to GeneratedModuleMaps-iphoneos)? I ask because we're experiencing the same issue. If we make a test project with macros, it finds the Macros module maps (that are in GeneratedModuleMaps) just fine.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI: onPreferenceChange not called if view contains if statement
I recommend filing this feedback with the Feedback app to ensure it gets seen by the right team within Apple.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to onGeometryChange: Assertion failed: Block was expected to execute on queue
I'm seeing the same thing. And there are no main thread restrictions on this API, nor should there be (especially in closure #1) since it doesn't modify UI. At any rate, if this needs to run on main, it should be called on main. We're also not seeing 100% crashes on this. It just happens sometimes. I will likely file a bug report, but I can not reproduce it 100%.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to Does originalTransactionId change if a user resubscribes?
This thread described the issue perfectly, but for a handful of our accounts, we're not seeing the same originalTransactionId being returned. https://developer.apple.com/forums/thread/777397 We call getAllSubscriptions with the originalTransactionId but are getting back a response with a completely different one. This started happening around Feb 25, 2025. And again, this is only for a tiny percentage of our accounts.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’25