Explorar o código

Reverse Objective-Cifying of Constraint

Robert Payne %!s(int64=9) %!d(string=hai) anos
pai
achega
98e613686f
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Source/Constraint.swift

+ 1 - 3
Source/Constraint.swift

@@ -27,8 +27,7 @@
     import AppKit
 #endif
 
-@objc(SnapKitConstraint)
-public final class Constraint : NSObject {
+public final class Constraint {
     
     internal let sourceLocation: (String, UInt)
     internal let label: String?
@@ -68,7 +67,6 @@ public final class Constraint : NSObject {
         self.constant = constant
         self.priority = priority
         self.layoutConstraints = []
-        super.init()
         
         // get attributes
         let layoutFromAttributes = self.from.attributes.layoutAttributes