From b86a78f7fe6ebe6892c84d85be4fe01ab70a3d52 Mon Sep 17 00:00:00 2001 From: Leonardo Canali Date: Mon, 6 Nov 2023 14:41:52 +0100 Subject: [PATCH 1/2] set shouldPresentInFullscreen as true set shouldPresentInFullscreen as true due iOS 17 known problem --- .../Core/Presentation/BottomSheetPresentationController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift b/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift index c2a922f..4bbb701 100644 --- a/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift +++ b/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift @@ -150,7 +150,7 @@ public final class BottomSheetPresentationController: UIPresentationController { } public override var shouldPresentInFullscreen: Bool { - false + true } public override var frameOfPresentedViewInContainerView: CGRect { From 3b3b02ad4124e876579f06b370725beae01cbfc3 Mon Sep 17 00:00:00 2001 From: Mikhail Maslo Date: Sat, 6 Jan 2024 14:36:14 +0100 Subject: [PATCH 2/2] Add iOS version check --- .../Presentation/BottomSheetPresentationController.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift b/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift index 4bbb701..3e0e42d 100644 --- a/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift +++ b/Sources/BottomSheet/Core/Presentation/BottomSheetPresentationController.swift @@ -150,7 +150,11 @@ public final class BottomSheetPresentationController: UIPresentationController { } public override var shouldPresentInFullscreen: Bool { - true + if #available(iOS 17.0, *) { + return true + } else { + return false + } } public override var frameOfPresentedViewInContainerView: CGRect {