Post #4326489
2026-07-20 09:56 UTC
To prepare Strolly for app resizability in iOS 27, we wanted its non-modal detent sheets to adapt into side panels on wider displays.
SwiftUI sheets don’t support that presentation, so we built our own panel API. It behaves like a bottom sheet when space is limited and moves to the side when more width becomes available.
I wrote about how we designed and implemented it:
https://nilcoalescing.com/blog/BuildingAdaptiveNonModalPanelsInSwiftUI/
#SwiftUI #iOSDev #SwiftLang
Replies (1)
-
@nerius@mastodon.online 2026-07-20 11:23
@hishnash@mastodon.social maybe a bit off topic, but I was wondering if and how you are handling transition from scrolling to dragging when scroll view is inside the panel? I recently implemented a custom bottom sheet and had to drop down to UIScrollView gesture recognizers which wasn't pretty to say the least