Skip to content
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

Resizing dialog with preferredContentSize no longer working. #11

Open
brianmwadime opened this issue Jan 9, 2022 · 3 comments
Open

Comments

@brianmwadime
Copy link

How can I make the dialog resize to fit it's contents?

@brianmwadime
Copy link
Author

LSDialogViewController picks the preferredContentSize when Layout is set to Inferred(Constraints) but it doesn't center the dialog.
image

@brianmwadime
Copy link
Author

@daihase

@daihase
Copy link
Owner

daihase commented Jan 13, 2022

@brianmwadime
Since LSDialogViewController will be created based on UIViewController,
the size of the dialog will not be dynamically determined based on the content in the base.

If you want to resize the dialog according to the content, you need to handle the resizing of the view dynamically in the code on the CustomViewController side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants