Post

Replies

Boosts

Views

Activity

Reply to How is Safari's sidebar animation implemented in visionOS?
There is an example of this for UIKit here: https://github.com/steventroughtonsmith/VisionExpandingSidebar/tree/main Looks like it uses a new UIScene preferences type for VisionOS. https://developer.apple.com/documentation/uikit/uiwindowscene/geometrypreferences/reality However, I'm unable to find a declarative analog to this with SwiftUI. You can set the max and min sizes, but it's unclear how to request preferred size for the window, as you can with the size property.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’23
Reply to NavigationSplitView and .navigationDestination
Also, if you remove the .navigationDestinations from the ListView, run on iPad, navigate to a detail view via the content list, then collapse the UI with Stage Manager, you get a yellow alert icon. There is no .navigationDestinations to fall back to. Apparently, the redundant .navigationDestination`s represent an analog to how we can return a different view controllers for collapsed / expanded states via delegate methods on UISplitViewController?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’23
Reply to NavigationSplitView Missing in Xcode 14 RC
Xcode 14 RC is a production release build. As such, it only includes non-beta SDKs. Since the macOS 13 SDK is still in beta, Xcode 14 RC does not contain the macOS 13 SDK. Rather, it contains the current production macOS SDK, which is macOS 12.x. You cannot ship apps for macOS 13 until the 13 SDK is out of beta. This will occur later this year. A future version of Xcode 14 will contain both the new release iOS 16 SDK and new release macOS 13 SDK when it is out of beta. Until that time, for the continued development of macOS 13, use the latest Xcode 14 beta.
Sep ’22