Fix edgesIgnoringSafeArea availability for iOS only

Wrapped edgesIgnoringSafeArea modifier in iOS platform check to fix build issues on other platforms.
This commit is contained in:
Arkadiusz Fal
2025-11-14 19:07:55 +01:00
parent 8f97c40257
commit 500c787063

View File

@@ -49,7 +49,9 @@ struct VerticalCells<Header: View>: View {
.padding() .padding()
} }
.animation(nil) .animation(nil)
.edgesIgnoringSafeArea(edgesIgnoringSafeArea) #if os(iOS)
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
#endif
#if os(macOS) #if os(macOS)
.background(Color.secondaryBackground) .background(Color.secondaryBackground)
.frame(minWidth: Constants.contentViewMinWidth) .frame(minWidth: Constants.contentViewMinWidth)