Open
Description
From the iOS 11 release notes:
Updated
NSLayoutXAxisAnchor
andNSLayoutYAxisAnchor
to provide factory methods that create constraints using the system spacing between two anchors. Previously the only way to create such a constraint was with the dash (-
) in the Visual Format Language.
Anchorage should add some kind of syntactic sugar or named CGFloat
value like .system
or something. The new API looks like this:
func constraintEqualToSystemSpacingAfter(NSLayoutXAxisAnchor, multiplier: CGFloat)
It might be nice to use it like this:
view2.trailingAnchor == view1.leadingAnchor + SystemSpacing()