diff --git a/Sources/OversizeUI/Controls/PageView/PageView.swift b/Sources/OversizeUI/Controls/PageView/PageView.swift index 6e75b82..07b913f 100644 --- a/Sources/OversizeUI/Controls/PageView/PageView.swift +++ b/Sources/OversizeUI/Controls/PageView/PageView.swift @@ -47,6 +47,7 @@ public struct PageView ScrollViewOffset(offset: $offset) { content } + .frame(maxWidth: .infinity, alignment: .leading) .background(background.ignoresSafeArea()) .safeAreaInset(edge: .top) { header } .onChange(of: offset) { offset in diff --git a/Sources/OversizeUI/Core/EnvironmentKeys/SectionTitleInsetsEnvironment.swift b/Sources/OversizeUI/Core/EnvironmentKeys/SectionTitleInsetsEnvironment.swift index 1622c11..a776f7a 100644 --- a/Sources/OversizeUI/Core/EnvironmentKeys/SectionTitleInsetsEnvironment.swift +++ b/Sources/OversizeUI/Core/EnvironmentKeys/SectionTitleInsetsEnvironment.swift @@ -25,7 +25,7 @@ public extension View { environment(\.sectionTitleInsets, .init(top: .zero, leading: .medium, bottom: .zero, trailing: .medium)) .environment(\.surfaceContentInsets, .init(top: .medium, leading: .zero, bottom: .medium, trailing: .zero)) } - + func sectionContentCompactRowInsets() -> some View { environment(\.sectionTitleInsets, .init(top: .zero, leading: .medium, bottom: .zero, trailing: .medium)) .environment(\.surfaceContentInsets, .init(top: .xxSmall, leading: .zero, bottom: .xxSmall, trailing: .zero)) diff --git a/Sources/OversizeUI/Extensions/View/View+Available.swift b/Sources/OversizeUI/Extensions/View/View+Available.swift index abbacbe..79d69c4 100644 --- a/Sources/OversizeUI/Extensions/View/View+Available.swift +++ b/Sources/OversizeUI/Extensions/View/View+Available.swift @@ -24,7 +24,7 @@ public extension View { self } } - + @_disfavoredOverload @ViewBuilder func presentationDragIndicator(_ visibility: Visibility) -> some View { @@ -34,7 +34,7 @@ public extension View { self } } - + @_disfavoredOverload @ViewBuilder func presentationContentInteraction(_ behavior: PresentationContentInteraction) -> some View { @@ -44,7 +44,7 @@ public extension View { self } } - + @_disfavoredOverload @ViewBuilder func presentationCompactAdaptation(_ adaptation: PresentationAdaptation) -> some View { @@ -55,7 +55,7 @@ public extension View { self } } - + @_disfavoredOverload @ViewBuilder func scrollDisabled(_ disabled: Bool) -> some View {