From b416351dc9a33c483b2dc248808016681a49dfdb Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Wed, 16 Nov 2022 01:21:18 +0300 Subject: [PATCH] Fix horizontal orientation in PageView --- Sources/OversizeUI/Controls/PageView/PageView.swift | 1 + Sources/OversizeUI/Extensions/HalfSheet/HalfSheet.swift | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/OversizeUI/Controls/PageView/PageView.swift b/Sources/OversizeUI/Controls/PageView/PageView.swift index 46c2e5b..1ef0c30 100644 --- a/Sources/OversizeUI/Controls/PageView/PageView.swift +++ b/Sources/OversizeUI/Controls/PageView/PageView.swift @@ -46,6 +46,7 @@ public struct PageView trailingBar: { trailingBar }, bottomBar: { topToolbar }, titleLabel: { titleLabel }) + .ignoresSafeArea(edges: .horizontal) .zIndex(999_999_999) } ScrollViewOffset(offset: $offset) { diff --git a/Sources/OversizeUI/Extensions/HalfSheet/HalfSheet.swift b/Sources/OversizeUI/Extensions/HalfSheet/HalfSheet.swift index c32d813..28bff48 100644 --- a/Sources/OversizeUI/Extensions/HalfSheet/HalfSheet.swift +++ b/Sources/OversizeUI/Extensions/HalfSheet/HalfSheet.swift @@ -55,9 +55,9 @@ import SwiftUI } } } - + @_disfavoredOverload - func presentationDragIndicator(_ visibility: Visibility) -> some View { + func presentationDragIndicator(_: Visibility) -> some View { self } }