Post

Replies

Boosts

Views

Activity

Reply to Selecting WindowGroup to open at app startup.
Hang on a second... Don't you define a single View inside a WindowGroup? From this page: // Here's where you define two different WindowGroups WindowGroup("Message", id: "message", for: UUID.self) { $uuid in MessageDetail(uuid: uuid) } WindowGroup("Account", id: "account-info", for: UUID.self) { $uuid in AccountDetail(uuid: uuid) } // Then, use both the identifier and a value to open the window struct ActionButtons: View { var messageID: UUID var accountID: UUID @Environment(\.openWindow) private var openWindow var body: some View { HStack { Button("Open message") { openWindow(id: "message", value: messageID) } Button("Edit account information") { openWindow(id: "account-info", value: accountID) } } } } So, you define your different window types, and then open them as required, so your's might be: var body: some Scene { WindowGroup(id: "wg1") { ViewOne() } WindowGroup(id: "wg2") { ViewTwo() } } Then you open a window at startup with: openWindow(id: showFirstView ? "wg1" : "wg2")
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24
Reply to IPHONE 14 PRO MAX GREEN SCREEN
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. These forums are not where Apple's actual developers or support staff chat about stuff. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Topic: App & System Services SubTopic: StoreKit Tags:
Aug ’24
Reply to Inquiry: Checking User’s Large App Icon Mode Setting on iOS 18
As far as I can tell Large App Icon mode in iOS 18 just makes the icons on the Home Screen larger, and removes app names. What would you need to do inside your own app based on this? If you're thinking, "Oh, the user has enabled Large App Icon mode, so they might have issues with their sight, let's make everything larger in the app", then I wouldn't do that, for two reasons: The user may not have issues with their sight, they just want to remove app names from their Home Screen. There are accessibility settings like Dynamic Text Size that your app's UI should adhere to. Basing an app's UI on how the user decides to show their Home Screen is, in my opinion, redundant.
Topic: UI Frameworks SubTopic: General Tags:
Aug ’24
Reply to iOS 18 beta 5 NSAttributedString Crash
The Developer Forums aren't really the right place to raise bugs in a new version of an OS. Apple's engineers aren't reading through these pages waiting to see if anyone's found a bug before they fix it. These forums are for third-party developers writing apps for Apple's platforms to discuss issues with their code. You need to raise each issue you find separately at https://www.apple.com/feedback/ You can post the FB numbers here if you want, so that others can link to them.
Topic: App & System Services SubTopic: General Tags:
Aug ’24
Reply to Ongoing Issue with iPhone Mirroring Feature on iOS 18 and macOS Sequoia
I see you mentioned that you've submitted previous feedback, do you mean you've raised a Feedback Report at https://feedbackassistant.apple.com or have you merely raised the issue here on the forums? If you raised a report, you might want to add some extra logs that might help Apple figure out the issue. How does this issue "significantly affect your workflow"? This feature didn't exist before. If you've based a workflow on a beta feature, you may want to change it :)
Topic: Community SubTopic: Apple Developers Tags:
Aug ’24