Fixes to ambiguity

This commit is contained in:
Pfeil, Scott Robert 2019-08-20 10:00:07 -04:00
parent 11669c173e
commit 6a2405989d

View File

@ -69,6 +69,9 @@ import UIKit
return
}
topRightLabel.textAlignment = .right
bottomRightLabel.textAlignment = .right
addSubview(topLabelsView)
addSubview(bottomLabelsView)
topLabelsView.topAnchor.constraint(equalTo: layoutMarginsGuide.topAnchor).isActive = true
@ -96,11 +99,11 @@ import UIKit
topLabelsView.bottomAnchor.constraint(greaterThanOrEqualTo: topRightLabel.bottomAnchor).isActive = true
var constraint = topLabelsView.bottomAnchor.constraint(equalTo: topLeftLabel.bottomAnchor)
constraint.priority = .defaultHigh
constraint.priority = topLeftLabel.contentHuggingPriority(for: .vertical) - 10
constraint.isActive = true
constraint = topLabelsView.bottomAnchor.constraint(equalTo: topRightLabel.bottomAnchor)
constraint.priority = .defaultHigh
constraint.priority = topRightLabel.contentHuggingPriority(for: .vertical) - 10
constraint.isActive = true
bottomLeftLabel.topAnchor.constraint(equalTo: bottomLabelsView.topAnchor).isActive = true
@ -111,11 +114,11 @@ import UIKit
bottomLabelsView.bottomAnchor.constraint(greaterThanOrEqualTo: bottomRightLabel.bottomAnchor).isActive = true
constraint = bottomLabelsView.bottomAnchor.constraint(equalTo: bottomLeftLabel.bottomAnchor)
constraint.priority = .defaultHigh
constraint.priority = bottomLeftLabel.contentHuggingPriority(for: .vertical) - 10
constraint.isActive = true
constraint = bottomLabelsView.bottomAnchor.constraint(equalTo: bottomRightLabel.bottomAnchor)
constraint.priority = .defaultHigh
constraint.priority = bottomRightLabel.contentHuggingPriority(for: .vertical) - 10
constraint.isActive = true
}