LSDialogViewController icon indicating copy to clipboard operation
LSDialogViewController copied to clipboard

Resizing dialog with preferredContentSize no longer working.

Open brianmwadime opened this issue 3 years ago • 3 comments

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

brianmwadime avatar Jan 09 '22 09:01 brianmwadime

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

brianmwadime avatar Jan 10 '22 09:01 brianmwadime

@daihase

brianmwadime avatar Jan 12 '22 09:01 brianmwadime

@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.

daihase avatar Jan 13 '22 03:01 daihase