From 505aafd80b615d4c967e1a090b9b1fe71f6b1a52 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 17 Oct 2022 12:36:34 +0200 Subject: [PATCH] height value --- .../Common/SwiftUI/VectorHostingBottomSheetPreferences.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Riot/Modules/Common/SwiftUI/VectorHostingBottomSheetPreferences.swift b/Riot/Modules/Common/SwiftUI/VectorHostingBottomSheetPreferences.swift index 0d7674fa3..2abdcf16b 100644 --- a/Riot/Modules/Common/SwiftUI/VectorHostingBottomSheetPreferences.swift +++ b/Riot/Modules/Common/SwiftUI/VectorHostingBottomSheetPreferences.swift @@ -34,8 +34,8 @@ class VectorHostingBottomSheetPreferences { case .large: return .large() case let .custom(_, height): if #available(iOS 16, *) { - return .custom { context in - return context.maximumDetentValue + return .custom { _ in + return height } } else { return .medium()