if updateLayout() is called in another methods except layoutSubivews(),
view's autolayout doesn't work appropriately.
i don't know why ...
class MyView:UIView {
override func layoutSubviews() {
super.layoutSubviews()
updateLayout()
}
func updateLayout(){
// setting height, constraints
}
}