mirror of https://github.com/SnapKit/SnapKit
Swift4.2 (#516)
This commit is contained in:
parent
01124b9f32
commit
0503c24de8
|
@ -25,8 +25,13 @@ import Foundation
|
||||||
|
|
||||||
#if os(iOS) || os(tvOS)
|
#if os(iOS) || os(tvOS)
|
||||||
import UIKit
|
import UIKit
|
||||||
|
#if swift(>=4.2)
|
||||||
|
typealias LayoutRelation = NSLayoutConstraint.Relation
|
||||||
|
typealias LayoutAttribute = NSLayoutConstraint.Attribute
|
||||||
|
#else
|
||||||
typealias LayoutRelation = NSLayoutRelation
|
typealias LayoutRelation = NSLayoutRelation
|
||||||
typealias LayoutAttribute = NSLayoutAttribute
|
typealias LayoutAttribute = NSLayoutAttribute
|
||||||
|
#endif
|
||||||
typealias LayoutPriority = UILayoutPriority
|
typealias LayoutPriority = UILayoutPriority
|
||||||
#else
|
#else
|
||||||
import AppKit
|
import AppKit
|
||||||
|
|
Loading…
Reference in New Issue