Post

Replies

Boosts

Views

Activity

Reply to preferredColorScheme not working with Xcode 16
I tried to change the colorScheme as exposed here: https://stackoverflow.com/questions/61912363/swiftui-how-to-implement-dark-mode-toggle-and-refresh-all-views Or to create a State var from the AppStorage… But I understood that AppStorage is already a State var, so that should not be needed. To no avail. The View background remains unchanged but some subviews get changed… And anyway, that would not explain the difference between Xcode 15 and 16… Tested in Xcode 16.1ß1 without success.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to SwiftUI conditional modifier depending on OS type and version
I found a simple answer here: https://stackoverflow.com/questions/74300019/how-to-use-if-available-in-main-in-a-documentgroup-application Just enclose in a func: struct TheApp: App { var body: some Scene { conditionalScene() } #if os(macOS) func conditionalScene() -> some Scene { if #available(macOS 13.0, *) { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } .windowResizability(.contentSize) // Only here } else { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } } } #else // iOS func conditionalScene() -> some Scene { if #available(iOS 17.0, *) { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } .windowResizability(.contentSize) // Only here } else { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } } } #endif // test of OS } // App
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to WhatsApp iso 18.1
Welcome to the forum. Your question is not about app development. So you'd better either contact Whatsapp or Facebook on their forum, as it looks like a WhatsApp bug: https://www.reddit.com/r/whatsapp/comments/1ftr4rw/ios_18_car_play_and_whatsapp_issues/ ask on Apple Support Community: https://discussions.apple.com/welcome file a bug report here: https://feedbackassistant.apple.com (but it does not look like an iOS bug). PS: I hope you don't use it when driving. In that case it's safe not to let you answer 😉
Oct ’24
Reply to Questions Tags Saves Users Companies Labs Jobs Discussions Collectives Communities for your favorite technologies. Explore all Collectives Teams Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. Lookin
Welcome to the forum. Your question is not about app development. So you'd better ask on Apple Support Community: https://discussions.apple.com/welcome PS: make the titles of your posts shorter and more explicit. Title is not to tell a full story. Read advice #13: https://developer.apple.com/forums/thread/706527
Topic: Safari & Web SubTopic: General
Oct ’24
Reply to App review getting rejected because of 2.1 - Information Needed
Appstore provides a solution for your case: If you are unable to provide a demo account due to legal or security obligations, you may include a built-in demo mode in lieu of a demo account with prior approval by Apple. Ensure the demo mode exhibits your app’s full features and functionality. You should probably contact developers' support to get some help.
Oct ’24
Reply to Guideline 2.3.7 - Performance - Accurate Metadata
It's great to provide screenshots, but please, reduce the size of each image. Read advice 10 here: https://developer.apple.com/forums/thread/706527 There are a lot of amounts, but are they prices ? Are any of them references to the price of the app or the service it provides ? If it is, as @endecotp wrote, remove them, replacing by $***. ** If not, explain very clearly to reviewer that the $ amounts are not related in anyway to the price of the service, they are just illustration of what a user finances may look like. Another thing. Are they real simulator screenshots ? We see the Dynamic Island partly below the notch, in a way I never saw before.
Oct ’24
Reply to preferredColorScheme not working with Xcode 16
I tried to change the colorScheme as exposed here: https://stackoverflow.com/questions/61912363/swiftui-how-to-implement-dark-mode-toggle-and-refresh-all-views Or to create a State var from the AppStorage… But I understood that AppStorage is already a State var, so that should not be needed. To no avail. The View background remains unchanged but some subviews get changed… And anyway, that would not explain the difference between Xcode 15 and 16… Tested in Xcode 16.1ß1 without success.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI conditional modifier depending on OS type and version
I found a simple answer here: https://stackoverflow.com/questions/74300019/how-to-use-if-available-in-main-in-a-documentgroup-application Just enclose in a func: struct TheApp: App { var body: some Scene { conditionalScene() } #if os(macOS) func conditionalScene() -> some Scene { if #available(macOS 13.0, *) { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } .windowResizability(.contentSize) // Only here } else { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } } } #else // iOS func conditionalScene() -> some Scene { if #available(iOS 17.0, *) { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } .windowResizability(.contentSize) // Only here } else { WindowGroup { ContentView() .frame( minWidth: 1200, maxWidth: .infinity, minHeight: 600, maxHeight: .infinity) } } } #endif // test of OS } // App
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to WhatsApp iso 18.1
Welcome to the forum. Your question is not about app development. So you'd better either contact Whatsapp or Facebook on their forum, as it looks like a WhatsApp bug: https://www.reddit.com/r/whatsapp/comments/1ftr4rw/ios_18_car_play_and_whatsapp_issues/ ask on Apple Support Community: https://discussions.apple.com/welcome file a bug report here: https://feedbackassistant.apple.com (but it does not look like an iOS bug). PS: I hope you don't use it when driving. In that case it's safe not to let you answer 😉
Replies
Boosts
Views
Activity
Oct ’24
Reply to Where can I enter my D-U-N-S number in my Apple developer account?
Where you registered as individual, in that case you don't need DUNS number. Or a company, then you should have entered at creation. So I understand you want to change from individual to company. And then (only) you'll be asked for your DUNS number. PS: don't forget to close your thread once you've received the correct answer.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Flutter barcode_scan2: ^4.3.3 non funziona bene su iOS
L'aggiunta dello zero sembra logica. Vedere questo sito (in francese): https://help.xmpie.com/uCreatePrint/Latest/Help/fr/QLingo/Supported_Barcodes_and_Matching_QLingo_Parameters.htm Non è possibile eliminarlo una volta che il codice a barre è stato letto, nella vostra applicazione? Dovresti porre questa domanda sul forum di Flutter.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Questions Tags Saves Users Companies Labs Jobs Discussions Collectives Communities for your favorite technologies. Explore all Collectives Teams Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. Lookin
Welcome to the forum. Your question is not about app development. So you'd better ask on Apple Support Community: https://discussions.apple.com/welcome PS: make the titles of your posts shorter and more explicit. Title is not to tell a full story. Read advice #13: https://developer.apple.com/forums/thread/706527
Topic: Safari & Web SubTopic: General
Replies
Boosts
Views
Activity
Oct ’24
Reply to App review getting rejected because of 2.1 - Information Needed
Appstore provides a solution for your case: If you are unable to provide a demo account due to legal or security obligations, you may include a built-in demo mode in lieu of a demo account with prior approval by Apple. Ensure the demo mode exhibits your app’s full features and functionality. You should probably contact developers' support to get some help.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Guideline 2.3.7 - Performance - Accurate Metadata
It's great to provide screenshots, but please, reduce the size of each image. Read advice 10 here: https://developer.apple.com/forums/thread/706527 There are a lot of amounts, but are they prices ? Are any of them references to the price of the app or the service it provides ? If it is, as @endecotp wrote, remove them, replacing by $***. ** If not, explain very clearly to reviewer that the $ amounts are not related in anyway to the price of the service, they are just illustration of what a user finances may look like. Another thing. Are they real simulator screenshots ? We see the Dynamic Island partly below the notch, in a way I never saw before.
Replies
Boosts
Views
Activity
Oct ’24