Post

Replies

Boosts

Views

Activity

Reply to UIRequiresFullScreen Deprecation
So basically the "fix" is to: Make your app to support all orientations and support resizing. Easy ! All disable all orientations on iPad and stick to one orientation. The funny thing is that my app is already supporting all orientations and I'm using native SwiftUI but the problem is that the window controls are overlapping navigation of my app, which is using standard top-left navigation to go back. So my app is not usable on windowed mode. I've put a lot of effort on the landscape mode and I will need to disable it. Thank you.
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’25
Reply to NavigationStack + navigationDestination issue in
Hi, just an upgrade to close the topic. Moving to Observation is not an option as it will force me to drop iOS 16 support and I would like always to maintain support for minimum 3 iOS versions. I also tried suggested on point 2, among things but nothing worked. Finally, I analysed other parts of the code where I had something similar but worked, and came out with the fact that only had this issue when the work on .onAppear was fast. In other screens where I do some processing onAppear, it worked. So I ended adding a subtle sleep inside .onAppear which "fixed" the issue. .onAppear{ Task { await nextWeekViewModel.processNextWeek(team: team) if nextWeekViewModel.finishedProcessing { DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { self.navigate = true } } } } It's not ideal but it seems that the underlying problem is fixed in iOS18 so I accept this as a workaround for iOS16/IOS17. Thanks for the help.
Topic: UI Frameworks SubTopic: SwiftUI
Apr ’25