From 18851b7ecd153a5acb6502a6360f7e9c7c3ab856 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Sun, 12 Apr 2015 18:27:36 +1200 Subject: [PATCH] Fix up interface layout direction --- Source/Snap.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Source/Snap.swift b/Source/Snap.swift index c083faa..ce972de 100644 --- a/Source/Snap.swift +++ b/Source/Snap.swift @@ -20,3 +20,20 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. + +#if os(iOS) +import UIKit +typealias InterfaceLayoutDirection = UIUserInterfaceLayoutDirection +#else +import AppKit +typealias InterfaceLayoutDirection = NSUserInterfaceLayoutDirection +#endif + +/** + * Config that can be used to configure Snap + */ +public struct Config { + + public static var interfaceLayoutDirection = InterfaceLayoutDirection.LeftToRight + +} \ No newline at end of file