-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change height of sheet after updated content size of view? #123
Comments
Hey @gordontucker |
Same issue here with some dynamic content. It's an awesome library btw ;-) |
Ran into this same issue when updating the sheet content after initial view load. The function that does the trick is in One way to call that method indirectly is to call |
… a public func, 'updateIntrinsicHeight()' to recalculate/update the intrinsic height of the sheet. Resolves gordontucker#123
… a public func, 'updateIntrinsicHeight()' to recalculate/update the intrinsic height of the sheet. Resolves gordontucker#123
Thanks a lot @gordontucker ;-) |
@gordontucker It is not working if scrollview is present |
If the content size of the view controller's view gets changed while the sheet is opened for any reason for example label text gets updated to 3 lines from 1 line, then the sheet height does not get resized (does not increase or decrease the height of the sheet). In fact, some content gets shrink as shown in the screenshot.
The text was updated successfully, but these errors were encountered: