added constraint

This commit is contained in:
Subhankar Acharya 2020-07-20 15:43:10 +05:30
parent c4c806a728
commit ac19371652

View File

@ -43,6 +43,7 @@ import Foundation
open override func setupView() {
super.setupView()
addSubview(stack)
planLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
planLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
planLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal)
NSLayoutConstraint.constraintPinSubview(toSuperview: stack)