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