added constraint
This commit is contained in:
parent
c4c806a728
commit
ac19371652
@ -43,6 +43,7 @@ import Foundation
|
|||||||
open override func setupView() {
|
open override func setupView() {
|
||||||
super.setupView()
|
super.setupView()
|
||||||
addSubview(stack)
|
addSubview(stack)
|
||||||
|
planLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||||
planLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
|
planLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
|
||||||
planLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal)
|
planLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal)
|
||||||
NSLayoutConstraint.constraintPinSubview(toSuperview: stack)
|
NSLayoutConstraint.constraintPinSubview(toSuperview: stack)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user