Skip to content

Commit

Permalink
Merge d4d3c48 into c7a3053
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 authored Jul 7, 2023
2 parents c7a3053 + d4d3c48 commit 9a635c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Sources/OversizeUI/Controls/PageView/PageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public struct PageView<Content, LeadingBar, TrailingBar, TopToolbar, TitleLabel>
ScrollViewOffset(offset: $offset) {
content
}
.frame(maxWidth: .infinity, alignment: .leading)
.background(background.ignoresSafeArea())
.safeAreaInset(edge: .top) { header }
.onChange(of: offset) { offset in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
8 changes: 4 additions & 4 deletions Sources/OversizeUI/Extensions/View/View+Available.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public extension View {
self
}
}

@_disfavoredOverload
@ViewBuilder
func presentationDragIndicator(_ visibility: Visibility) -> some View {
Expand All @@ -34,7 +34,7 @@ public extension View {
self
}
}

@_disfavoredOverload
@ViewBuilder
func presentationContentInteraction(_ behavior: PresentationContentInteraction) -> some View {
Expand All @@ -44,7 +44,7 @@ public extension View {
self
}
}

@_disfavoredOverload
@ViewBuilder
func presentationCompactAdaptation(_ adaptation: PresentationAdaptation) -> some View {
Expand All @@ -55,7 +55,7 @@ public extension View {
self
}
}

@_disfavoredOverload
@ViewBuilder
func scrollDisabled(_ disabled: Bool) -> some View {
Expand Down

0 comments on commit 9a635c5

Please sign in to comment.