height value

This commit is contained in:
Mauro Romito
2022-10-17 12:36:34 +02:00
parent 63babcf61a
commit 505aafd80b
@@ -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()