Support for Automatic Height Based on Modal Content ? #135
-
Hi there, I noticed that the modal currently supports fixed sizes—either medium (50%) or large (100%). I'm wondering if there's a way to allow the modal height to automatically adjust based on its content. This would be useful in cases where content varies in length and doesn't always justify the default fixed sizes. Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This isn't supported out of the box but I think it should be possible to implement on your own. You'd need to:
viewController?.preferredContentSize = CGSize(width: 300, height: 400) From the documentation:
|
Beta Was this translation helpful? Give feedback.
This isn't supported out of the box but I think it should be possible to implement on your own. You'd need to:
From the documentation: