mirror of https://github.com/SnapKit/SnapKit
Reverse Objective-Cifying of Constraint
This commit is contained in:
parent
6d7ba2bd91
commit
98e613686f
|
@ -27,8 +27,7 @@
|
||||||
import AppKit
|
import AppKit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@objc(SnapKitConstraint)
|
public final class Constraint {
|
||||||
public final class Constraint : NSObject {
|
|
||||||
|
|
||||||
internal let sourceLocation: (String, UInt)
|
internal let sourceLocation: (String, UInt)
|
||||||
internal let label: String?
|
internal let label: String?
|
||||||
|
@ -68,7 +67,6 @@ public final class Constraint : NSObject {
|
||||||
self.constant = constant
|
self.constant = constant
|
||||||
self.priority = priority
|
self.priority = priority
|
||||||
self.layoutConstraints = []
|
self.layoutConstraints = []
|
||||||
super.init()
|
|
||||||
|
|
||||||
// get attributes
|
// get attributes
|
||||||
let layoutFromAttributes = self.from.attributes.layoutAttributes
|
let layoutFromAttributes = self.from.attributes.layoutAttributes
|
||||||
|
|
Loading…
Reference in New Issue