Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Mage/Mixins/BottomSheetEnabled.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ class BottomSheetMixin: NSObject, MapMixin {
let mageBottomSheet = SwiftUIViewController(swiftUIView: MageBottomSheet())
mageBottomSheet.modalPresentationStyle = .pageSheet
if let sheet = mageBottomSheet.sheetPresentationController {
sheet.detents = [.medium(), .large()]
sheet.detents = [
.medium(),
.large(),
.custom(resolver: { context in
return 220 // FIXME: Do we use all these custom sizes? Or should we pick one? ~220 is close to previous behavior. Why doesn't this "self size"?
})
]
}
self.bottomSheetEnabled.navigationController?.present(mageBottomSheet, animated: true, completion: nil)

Expand Down