Skip to content
Discussion options

You must be logged in to vote

This isn't supported out of the box but I think it should be possible to implement on your own. You'd need to:

  1. Get the height of the content, most likely via JavaScript after the page loads
  2. Send that height via a bridge component
  3. Adjust the height of the already presented modal in native code
viewController?.preferredContentSize = CGSize(width: 300, height: 400)

From the documentation:

The value in this property is used primarily when displaying the view controller’s content in a popover but may also be used in other situations. Changing the value of this property while the view controller is being displayed in a popover animates the size change...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gontrandddre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants