Firstly, I set height constraints id named "$test$" in Attributes Inspector.
(Actually, I don't know which view should I select and set ID. I made it as a test.)
Then I put the following code.
extension NSLayoutConstraint {
override public var description: String {
let id = identifier ?? ""
return "id: \(id), constantTestResult: \(constant)"
}
}
The result is
"id: , constantTestResult: 32.0",
"id: , constantTestResult: 200.0",
"id: , constantTestResult: 15.0",
"id: , constantTestResult: 15.0",
"id: , constantTestResult: 4.0",
"id: $test$, constantTestResult: 129.0"
id does not show number. I found the post here: AutoLayout, Unable to simultaneously satisfy constraints
I did it like that but not successful. Please help me.