This fixes squishing issue in iPhone 11
This commit is contained in:
parent
1c1da369ee
commit
5d13d4d392
@ -37,6 +37,8 @@ import Foundation
|
||||
//--------------------------------------------------
|
||||
override open func setupView() {
|
||||
super.setupView()
|
||||
leftLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
leftLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
|
||||
leftLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal)
|
||||
addMolecule(stack)
|
||||
stack.restack()
|
||||
@ -66,12 +68,6 @@ import Foundation
|
||||
leftLabel.setFontStyle(.Title2XLarge)
|
||||
}
|
||||
|
||||
open override func layoutSubviews() {
|
||||
super.layoutSubviews()
|
||||
// This fixes a defect body text where it doesn't layout correctly.
|
||||
eyebrowHeadlineBodyLink.body.preferredMaxLayoutWidth = eyebrowHeadlineBodyLink.frame.width
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Accessibility
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user