Post

Replies

Boosts

Views

Activity

Reply to Looking to tweak default behaviour for a SwiftUI NavigationView in a TabView on iPad (in Portrait orientation)
I have not found a way to force the NavigationView to display the List view when iPad is in portrait. If the NavigationLink's are embedded within the List, you can simply add a view after the List within the NavigationView, which will be shown when there is no selection: NavigationView { List(items) { item in NavigationLink(destination: DetailView(item) ) { Text(item.description) } } ViewToShowWhenNoLinkIsActive() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’21
Reply to Looking to tweak default behaviour for a SwiftUI NavigationView in a TabView on iPad (in Portrait orientation)
I have not found a way to force the NavigationView to display the List view when iPad is in portrait. If the NavigationLink's are embedded within the List, you can simply add a view after the List within the NavigationView, which will be shown when there is no selection: NavigationView { List(items) { item in NavigationLink(destination: DetailView(item) ) { Text(item.description) } } ViewToShowWhenNoLinkIsActive() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to iOS App shows blank screen after migrating to SwiftUI Lifecycle
I ran into this problem when updating app from SceneDelegate to App lifecycle. After much trial and error, this setting in info.plist fixed the issue:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to CKSyncEngine save existing CKRecord
I noticed that after saving a record to the database, a fetchedRecordZoneChanges event will be triggered by CKSyncEngine, returning the modified record that was just saved. Although this seems redundant and inefficient, is the purpose of this to locally persist the newly saved record?
Replies
Boosts
Views
Activity
Apr ’25
Reply to Xcode Playground and FoundationModels
That works! Thank you.
Replies
Boosts
Views
Activity
Feb ’26