Post

Replies

Boosts

Views

Activity

General NavigationView & List State during device rotation
In the Earthquakes, example project & also mine I have noticed that view state is lost during device rotation. In portrait mode, the Table View / List is shown by default and in landscape mode, the pushed or detail view is shown instead. One how do you prevent the lost item selection in the landscape orientation when the detailed view is being loaded first without the primary List View to provide it with the incoming data? This is the current behaviour in the Earthquakes if anyone needs a code reference.
1
1
516
Jan ’22
SwiftUI TabView - duplicate entries List View while binded to a @FetchRequest
macOS app using a TabView, each tab's root view is using a @FetchRequest to populate a List view. while switching between tabs results in 1 ... (n * n) duplicate items on each tab switch. The behaviour is as if the internal update call in response to the SwiftUI view updating is not clearing the previous List view items but is appending to it. How do you clear or empty the List view on/or before every UI update call to the @FetchRequest property wrapper?
1
0
1.7k
Dec ’22
Max of four files allowed during Xcode 15 beta & platforms download
When all platforms are selected for download via Safari, it is a game of roulette where either a platform is not downloaded, Xcode is included in the download, or Xcode is not downloaded, but all four platforms are downloaded. This then creates a download mess with the manifest file because now you have a uncheck a few platforms and start all over again. How do you raise the Safari concurrent file download limit?
1
0
800
Jul ’23
SwiftUI iPad Landscape Only
@Apple How do you set an iPad swiftUI app to Landscape only seeing that the Xcode supportedInterfaceOrientations flag is ignored by swiftUI. The following doesn't work via the UIApplicationDelegateAdapter when the 2 methods are implemented. func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {             .landscape         }       func supportedInterfaceOrientations(for window: UIWindow?) -> UIInterfaceOrientationMask {             .landscape         }
2
0
1.4k
Apr ’22