diff --git a/KVConstraintKit.framework.zip b/KVConstraintKit.framework.zip index 076a345..546408a 100644 Binary files a/KVConstraintKit.framework.zip and b/KVConstraintKit.framework.zip differ diff --git a/KVConstraintKit.xcworkspace/contents.xcworkspacedata b/KVConstraintKit.xcworkspace/contents.xcworkspacedata index e3a1a09..589b02a 100644 --- a/KVConstraintKit.xcworkspace/contents.xcworkspacedata +++ b/KVConstraintKit.xcworkspace/contents.xcworkspacedata @@ -2,7 +2,7 @@ + location = "group:KVConstraintKit-Playground.playground"> diff --git a/KVConstraintKit/KVConstraintKit.swift b/KVConstraintKit/KVConstraintKit.swift index f1ed61b..45036aa 100644 --- a/KVConstraintKit/KVConstraintKit.swift +++ b/KVConstraintKit/KVConstraintKit.swift @@ -31,7 +31,8 @@ public typealias View = UIView public typealias LayoutPriority = UILayoutPriority - public typealias EdgeInsets = UIEdgeInsets + public typealias EdgeInsets = UIEdgeInsets + #else import AppKit @@ -40,6 +41,13 @@ #if !swift(>=3.0) public typealias EdgeInsets = NSEdgeInsets #endif + + extension EdgeInsets { + public static var zero: EdgeInsets { + return EdgeInsets() + } + } + #endif /// MARK: TO PREPARE VIEW FOR CONSTRAINTS