You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a UILabel with numberOfLines set to 0. Its height constraint is >=30. I want to change pullUpController's height depends on its subview's height. I don't have any method to call after the layout is updated.
The text was updated successfully, but these errors were encountered:
Hello there,
did you try using the method updatePreferredFrameIfNeeded(animated: Bool)?
Note that you should update pullUpControllerPreferredSize (or pullUpControllerPreferredLandscapeFrame) before call that method.
Hi @MarioIannotta
Is there a way to do it?
I am trying to do something similar where I want to expand the pullUpControllerPreferredSize (height) manually but it doesn't work.
public override var pullUpControllerPreferredSize: CGSize {
return CGSize(width: UIScreen.main.bounds.width, height: maxHeight)
}
Then I am changing the maxHeight value and calling:
I have a UILabel with numberOfLines set to 0. Its height constraint is >=30. I want to change pullUpController's height depends on its subview's height. I don't have any method to call after the layout is updated.
The text was updated successfully, but these errors were encountered: