Fixes to ambiguity
This commit is contained in:
parent
11669c173e
commit
6a2405989d
@ -69,6 +69,9 @@ import UIKit
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
topRightLabel.textAlignment = .right
|
||||||
|
bottomRightLabel.textAlignment = .right
|
||||||
|
|
||||||
addSubview(topLabelsView)
|
addSubview(topLabelsView)
|
||||||
addSubview(bottomLabelsView)
|
addSubview(bottomLabelsView)
|
||||||
topLabelsView.topAnchor.constraint(equalTo: layoutMarginsGuide.topAnchor).isActive = true
|
topLabelsView.topAnchor.constraint(equalTo: layoutMarginsGuide.topAnchor).isActive = true
|
||||||
@ -96,11 +99,11 @@ import UIKit
|
|||||||
topLabelsView.bottomAnchor.constraint(greaterThanOrEqualTo: topRightLabel.bottomAnchor).isActive = true
|
topLabelsView.bottomAnchor.constraint(greaterThanOrEqualTo: topRightLabel.bottomAnchor).isActive = true
|
||||||
|
|
||||||
var constraint = topLabelsView.bottomAnchor.constraint(equalTo: topLeftLabel.bottomAnchor)
|
var constraint = topLabelsView.bottomAnchor.constraint(equalTo: topLeftLabel.bottomAnchor)
|
||||||
constraint.priority = .defaultHigh
|
constraint.priority = topLeftLabel.contentHuggingPriority(for: .vertical) - 10
|
||||||
constraint.isActive = true
|
constraint.isActive = true
|
||||||
|
|
||||||
constraint = topLabelsView.bottomAnchor.constraint(equalTo: topRightLabel.bottomAnchor)
|
constraint = topLabelsView.bottomAnchor.constraint(equalTo: topRightLabel.bottomAnchor)
|
||||||
constraint.priority = .defaultHigh
|
constraint.priority = topRightLabel.contentHuggingPriority(for: .vertical) - 10
|
||||||
constraint.isActive = true
|
constraint.isActive = true
|
||||||
|
|
||||||
bottomLeftLabel.topAnchor.constraint(equalTo: bottomLabelsView.topAnchor).isActive = true
|
bottomLeftLabel.topAnchor.constraint(equalTo: bottomLabelsView.topAnchor).isActive = true
|
||||||
@ -111,11 +114,11 @@ import UIKit
|
|||||||
bottomLabelsView.bottomAnchor.constraint(greaterThanOrEqualTo: bottomRightLabel.bottomAnchor).isActive = true
|
bottomLabelsView.bottomAnchor.constraint(greaterThanOrEqualTo: bottomRightLabel.bottomAnchor).isActive = true
|
||||||
|
|
||||||
constraint = bottomLabelsView.bottomAnchor.constraint(equalTo: bottomLeftLabel.bottomAnchor)
|
constraint = bottomLabelsView.bottomAnchor.constraint(equalTo: bottomLeftLabel.bottomAnchor)
|
||||||
constraint.priority = .defaultHigh
|
constraint.priority = bottomLeftLabel.contentHuggingPriority(for: .vertical) - 10
|
||||||
constraint.isActive = true
|
constraint.isActive = true
|
||||||
|
|
||||||
constraint = bottomLabelsView.bottomAnchor.constraint(equalTo: bottomRightLabel.bottomAnchor)
|
constraint = bottomLabelsView.bottomAnchor.constraint(equalTo: bottomRightLabel.bottomAnchor)
|
||||||
constraint.priority = .defaultHigh
|
constraint.priority = bottomRightLabel.contentHuggingPriority(for: .vertical) - 10
|
||||||
constraint.isActive = true
|
constraint.isActive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user