From 0503c24de8006fd6c94f91c74db09cda80af00c3 Mon Sep 17 00:00:00 2001 From: Mauro Vime Castillo Date: Mon, 11 Jun 2018 05:46:30 +0200 Subject: [PATCH] Swift4.2 (#516) --- Source/Typealiases.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Typealiases.swift b/Source/Typealiases.swift index 8a44151..ded96cc 100644 --- a/Source/Typealiases.swift +++ b/Source/Typealiases.swift @@ -25,8 +25,13 @@ import Foundation #if os(iOS) || os(tvOS) import UIKit +#if swift(>=4.2) + typealias LayoutRelation = NSLayoutConstraint.Relation + typealias LayoutAttribute = NSLayoutConstraint.Attribute +#else typealias LayoutRelation = NSLayoutRelation typealias LayoutAttribute = NSLayoutAttribute +#endif typealias LayoutPriority = UILayoutPriority #else import AppKit