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)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue