mirror of https://github.com/SnapKit/SnapKit
Fix OS X complaining about edge insets
This commit is contained in:
parent
d9424975d4
commit
16f6fa789a
|
@ -30,12 +30,7 @@ public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right:
|
||||||
public let EdgeInsetsZero = EdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
|
public let EdgeInsetsZero = EdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
|
||||||
#else
|
#else
|
||||||
import AppKit
|
import AppKit
|
||||||
public struct EdgeInsets {
|
public typealias EdgeInsets = NSEdgeInsets
|
||||||
public var top: CGFloat
|
|
||||||
public var left: CGFloat
|
|
||||||
public var bottom: CGFloat
|
|
||||||
public var right: CGFloat
|
|
||||||
}
|
|
||||||
public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> EdgeInsets {
|
public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> EdgeInsets {
|
||||||
return EdgeInsets(top: top, left: left, bottom: bottom, right: right)
|
return EdgeInsets(top: top, left: left, bottom: bottom, right: right)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue