mirror of https://github.com/SnapKit/SnapKit
cd49354220
Instead of having a copy of each method for each type, factor the constraint target logic to use a new protocol RelationTarget. Note that since RelationTarget returns a new ConstraintItem and the constructor for ConstraintItem is internal, a user will be unable to erroneously extend the protocol. LayoutSupport should really be a RelationTarget too, but it seems you can't extenda a protocol to implement another protocol. |
||
---|---|---|
.. | ||
Constraint.swift | ||
ConstraintAttributes.swift | ||
ConstraintDescription.swift | ||
ConstraintItem.swift | ||
ConstraintMaker.swift | ||
ConstraintRelation.swift | ||
Debugging.swift | ||
EdgeInsets.swift | ||
Info.plist | ||
LayoutConstraint.swift | ||
SnapKit.h | ||
SnapKit.swift | ||
View+SnapKit.swift | ||
ViewController+SnapKit.swift |