fix preferredContentSize
This commit is contained in:
parent
7ab6ea0d23
commit
dbf95f726c
|
@ -63,7 +63,7 @@ class AltViewController: UIViewController {
|
|||
super.viewDidLayoutSubviews()
|
||||
UIView.performWithoutAnimation {
|
||||
preferredContentSize = CGSize(
|
||||
width: label.intrinsicContentSize.width + view.layoutMargins.left + view.layoutMargins.right,
|
||||
width: label.intrinsicContentSize.width + 16,
|
||||
height: label.intrinsicContentSize.height + view.layoutMargins.top + view.layoutMargins.bottom
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue