nonameplum / SwiftUIModal

A sliding sheet from the bottom of the screen that uses UIKit to present true modal view, but the whole animation and UI is driven by the SwiftUI.
https://nonameplum.github.io/SwiftUIModal/main/documentation/swiftuimodal/
MIT License
16 stars 0 forks source link

Modal Content Size to Full Size #3

Open ArEnSc opened 1 year ago

ArEnSc commented 1 year ago

@nonameplum Hey I was wondering, I was working on something similar, is it possible to have it switch between the content size and full? I don't think so from content size -> full and back This is due to the limitation on the modal right? there isn't a hack to get this to work? thanks!

nonameplum commented 1 year ago

If you mean the presentation style then probably no. But if you only need that in terms of the UI perspective you could try to do it ourself by fill-out the screen with the bottom sheet and then back. You might try to also check presentationDetents.

ArEnSc commented 1 year ago

If you mean the presentation style then probably no. But if you only need that in terms of the UI perspective you could try to do it ourself by fill-out the screen with the bottom sheet and then back. You might try to also check presentationDetents. yeah I was trying to get backwards compatibility to have half detents and large detents