How do I hide the separation lines inside Lists in SwiftUI for iOS 14?
Previously I could use
UITableView.appearance().separatorStyle = .none
but this doesn't seem to work anymore.
Post
Replies
Boosts
Views
Activity
I’d like to know, how I can setup a toolbar inside a sheet using SwiftUI on macOS.
I tried adding a NavigationView and used the following Code, but the top area of the sheet is always empty.
.toolbar {
ToolbarItem(placement: .confirmationAction) {
Button(action: {
// Do stuff
self.presentationMode.wrappedValue.dismiss()
}
) {
Label("Done", systemImage: "checkmark.fill")
}
}
ToolbarItem(placement: .cancellationAction) {
Button(action: {
self.presentationMode.wrappedValue.dismiss()
}
) {
Label("Cancel", systemImage: "checkmark.fill")
}
}
}
No matter what I try, if it's my own app(s) or new projects created in Xcode, when building and launching on macOS I only get a Black Screen with the following console logs[AXLoading] Failed to load item AXCodeItem<0x60000263a160> [Rank:6000] PhotosFramework [AXBundle name:/System/iOSSupport/System/Library/AccessibilityBundles/PhotosFramework.axbundle/PhotosFramework] [Platforms and Targets:{ iOS = Photos; } Framework]. error: Error Domain=AXLoading Code=0 "URL does not exist: file:///System/iOSSupport/System/Library/AccessibilityBundles/PhotosFramework.axbundle" UserInfo={NSLocalizedDescription=URL does not exist: file:///System/iOSSupport/System/Library/AccessibilityBundles/PhotosFramework.axbundle}[AXLoading] Failed to load item AXCodeItem<0x600002636760> [Rank:6000] StoreKitFramework [AXBundle name:/System/iOSSupport/System/Library/AccessibilityBundles/StoreKitFramework.axbundle/StoreKitFramework] [Platforms and Targets:{ iOS = StoreKit; } Framework]. error: Error Domain=AXLoading Code=0 "URL does not exist: file:///System/iOSSupport/System/Library/AccessibilityBundles/StoreKitFramework.axbundle" UserInfo={NSLocalizedDescription=URL does not exist: file:///System/iOSSupport/System/Library/AccessibilityBundles/StoreKitFramework.axbundle}
Since a few days I'm unable to deploy changes to the production database. I can edit record types on development database, but when I try do deploy them it says "No changes".
I have the following setup: Multiplatform SwiftUI App. When selecting a menu item from the sidebar, it opens correctly on the right side. When tapping something inside the List on the right side, the List disappears. Seems like a bug? When using a ScrollView on the Right side it works.
In the session it was recommended to use a TabView for Compact mode only on iPadOS. How do I achieve this easily in SwiftUI ?