This commit is contained in:
Mauro Vime Castillo 2018-06-11 05:46:30 +02:00 committed by Robert Payne
parent 01124b9f32
commit 0503c24de8
1 changed files with 5 additions and 0 deletions

View File

@ -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