You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(view as?View)?.table.constraints.forEach{ constraint inSwift.print("constraint: \(constraint)")Swift.print("constraint.constant: \(constraint.constant)")Swift.print("constraint.firstAnchor: \(constraint.firstAnchor)")Swift.print("constraint.isActive: \(constraint.isActive)")Swift.print("constraint.multiplier: \(constraint.multiplier)")Swift.print("constraint.priority: \(constraint.priority)")Swift.print("constraint.secondAnchor: \(constraint.secondAnchor)")// Swift.print("constraint.relation: \(String(describing: constraint.relation))") // threeSwift.print("constraintRelation(relation: .equal): \(constraintRelation(relation:.equal))")}/** * Returns the name of of the constraint relation * - Note: this is not possible to dervice from the NS enum it self, because its objc enum etc */func constraintRelation(relation:NSLayoutConstraint.Relation)->String{
switch relation {case.lessThanOrEqual:return"lessThanOrEqual"case.equal:return"equal"case.greaterThanOrEqual:return"greaterThanOrEqual"default:fatalError("case not covered")}}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: