Created
April 24, 2019 13:21
-
-
Save onmyway133/6ce5b7aa44968e2446c370b64356fbab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum To { | |
case anchor(Anchor) | |
case size | |
case none | |
} | |
class Pin { | |
let attribute: Attribute | |
var constant: CGFloa | |
init(_ attribute: Attribute, constant: CGFloat = 0) { | |
self.attribute = attribute | |
self.constant = constant | |
} | |
let item: AnyObject | |
// key: attribute | |
// value: constant | |
var pins: [Pin] = [ | |
var multiplierValue: CGFloat = 1 | |
var priorityValue: Float? | |
var identifierValue: String? | |
var referenceBlock: (([NSLayoutConstraint]) -> Void)? | |
var relationValue: Relation = .equal | |
var toValue: To = .none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment