From f07747cb21dc2334e87f2440550f32629313243e Mon Sep 17 00:00:00 2001 From: Ivan Vorobei Date: Mon, 15 Jan 2024 13:12:18 +0300 Subject: [PATCH] Update ViewExtension+LayoutMargins.swift --- .../Extensions/ViewExtension+LayoutMargins.swift | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Sources/SwiftUIExtension/Extensions/ViewExtension+LayoutMargins.swift b/Sources/SwiftUIExtension/Extensions/ViewExtension+LayoutMargins.swift index 90b2a3a..a53032b 100644 --- a/Sources/SwiftUIExtension/Extensions/ViewExtension+LayoutMargins.swift +++ b/Sources/SwiftUIExtension/Extensions/ViewExtension+LayoutMargins.swift @@ -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 {