Skip to content

Commit

Permalink
Delete ignore safe area from page view
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Jun 16, 2023
1 parent de6932b commit 0aa3966
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/OversizeUI/Controls/PageView/PageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public struct PageView<Content, LeadingBar, TrailingBar, TopToolbar, TitleLabel>
return control
}

public func bottomToolbar(style: PageViewBottomType = .shadow, ignoreSafeArea: Bool = true, @ViewBuilder bottomToolbar: @escaping () -> some View) -> some View {
public func bottomToolbar(style: PageViewBottomType = .shadow, @ViewBuilder bottomToolbar: @escaping () -> some View) -> some View {
VStack(spacing: .zero) {
overlay(
Group {
Expand Down Expand Up @@ -266,7 +266,6 @@ public struct PageView<Content, LeadingBar, TrailingBar, TopToolbar, TitleLabel>
.background(Color.surfacePrimary.shadowElevaton(style == .shadow ? .z2 : .z0))
}
}
.ignoresSafeArea(edges: ignoreSafeArea ? .bottom : .top)
}
}

Expand Down

0 comments on commit 0aa3966

Please sign in to comment.