Skip to content

Instantly share code, notes, and snippets.

@onmyway133
Created April 24, 2019 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onmyway133/6ce5b7aa44968e2446c370b64356fbab to your computer and use it in GitHub Desktop.
Save onmyway133/6ce5b7aa44968e2446c370b64356fbab to your computer and use it in GitHub Desktop.
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