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()
}
.animation(nil)
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
#if os(iOS)
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
#endif
#if os(macOS)
.background(Color.secondaryBackground)
.frame(minWidth: Constants.contentViewMinWidth)