Fix button styling and safe area handling on iOS

Added plain button style for rate increase/decrease buttons on iOS. Fixed safe area insets in VerticalCells to respect sidebar navigation style on iOS.
This commit is contained in:
Arkadiusz Fal
2025-11-14 20:49:48 +01:00
parent b88169c7dd
commit 763580203b
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ struct VerticalCells<Header: View>: View {
@Environment(\.loadMoreContentHandler) private var loadMoreContentHandler
@Environment(\.listingStyle) private var listingStyle
@Environment(\.navigationStyle) private var navigationStyle
var items = [ContentItem]()
var allowEmpty = false
@@ -50,7 +51,7 @@ struct VerticalCells<Header: View>: View {
}
.animation(nil)
#if os(iOS)
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
.edgesIgnoringSafeArea(navigationStyle == .sidebar ? [] : edgesIgnoringSafeArea)
#endif
#if os(macOS)
.background(Color.secondaryBackground)