Uses with NSLayoutAnchors and anchorWithOffset(to:) to create a Dimension representing the distance between two EdgeDimension can now hold an NSLayoutDimension anchor (representing an offset dimension) or produce a NSLayoutDimension for width or height, as required.
I used |-| for the custom operator, but we could use a different operator such as ]-[ (to mirror VFL) or some other operator.
Uses with
NSLayoutAnchors
andanchorWithOffset(to:)
to create aDimension
representing the distance between twoEdge
Dimension
can now hold anNSLayoutDimension
anchor (representing an offset dimension) or produce aNSLayoutDimension
for width or height, as required.I used
|-|
for the custom operator, but we could use a different operator such as]-[
(to mirror VFL) or some other operator.