Skip to content

Commit

Permalink
Update ViewExtension+LayoutMargins.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Jan 15, 2024
1 parent 065d27e commit f07747c
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@ struct HorizontalSystemPadding: ViewModifier {
}
}

//var withCompensation: Bool = false

@Environment(\.horizontalSizeClass) var horizontalSizeClass

public func body(content: Content) -> some View {
/*let compensation: CGFloat = {
#if os(visionOS)
return -14
#else
return .zero
#endif
}()*/
if #available(iOS 17.0, macOS 14.0, *) {
if #available(iOS 17.0, macOS 14.0, watchOS 10.0, *) {
content
.contentMargins(.horizontal, value, for: .scrollContent)
} else {
Expand Down

0 comments on commit f07747c

Please sign in to comment.