File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 2727
2828import Foundation
2929
30+ #if os(iOS)
31+ import UIKit
32+
3033class Coordinates {
3134 static func hCenter( _ view: UIView ) -> CGFloat {
3235 return view. frame. minX + ( view. frame. width / 2 )
@@ -93,3 +96,5 @@ class Coordinates {
9396public func setUnitTest( displayScale: CGFloat ) {
9497 Coordinates . displayScale = displayScale
9598}
99+
100+ #endif
Original file line number Diff line number Diff line change 2727
2828import Foundation
2929
30+ #if os(iOS)
31+ import UIKit
32+
3033// MARK: - PinLayout UIView's extension
3134public extension UIView {
3235 public var pin : PinLayout {
@@ -306,3 +309,5 @@ prefix operator -
306309public prefix func - ( p: Percent ) -> Percent {
307310 return Percent ( value: - p. value)
308311}
312+
313+ #endif
Original file line number Diff line number Diff line change 2727
2828import Foundation
2929
30+ #if os(iOS)
31+
3032public var unitTestLastWarning : String ?
3133
3234#if DEBUG
@@ -1196,3 +1198,4 @@ extension PinLayoutImpl {
11961198 }
11971199}
11981200
1201+ #endif
Original file line number Diff line number Diff line change 2727
2828import Foundation
2929
30+ #if os(iOS)
31+ import UIKit
32+
3033typealias Context = ( ) -> String
3134typealias Size = ( width: CGFloat ? , height: CGFloat ? )
3235
@@ -151,3 +154,4 @@ extension Percent: CustomStringConvertible {
151154 }
152155}
153156
157+ #endif
You can’t perform that action at this time.
0 commit comments