From 16f6fa789ade3b4b5dd2952b1a52780596871ce7 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Wed, 15 Apr 2015 23:30:46 +1200 Subject: [PATCH] Fix OS X complaining about edge insets --- Source/EdgeInsets.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/EdgeInsets.swift b/Source/EdgeInsets.swift index d6003aa..cd446be 100644 --- a/Source/EdgeInsets.swift +++ b/Source/EdgeInsets.swift @@ -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) #else import AppKit -public struct EdgeInsets { - public var top: CGFloat - public var left: CGFloat - public var bottom: CGFloat - public var right: CGFloat -} +public typealias EdgeInsets = NSEdgeInsets public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> EdgeInsets { return EdgeInsets(top: top, left: left, bottom: bottom, right: right) }