Skip to content

Commit a5e47c9

Browse files
author
Luc Dion
committed
Update
1 parent 083e9b9 commit a5e47c9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

PinLayout.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
DF96F30920CB5DB7007CA714 /* View+Rect.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF96F30820CB5DB7007CA714 /* View+Rect.swift */; };
8383
DF96F30A20CB5DDC007CA714 /* View+Rect.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF96F30820CB5DB7007CA714 /* View+Rect.swift */; };
8484
DF96F30B20CB5DDD007CA714 /* View+Rect.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF96F30820CB5DB7007CA714 /* View+Rect.swift */; };
85+
DF96F30E20CB6362007CA714 /* PinLayoutObjCImpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 241A277C1F8E958F00B1AD39 /* PinLayoutObjCImpl.swift */; };
8586
DFABC01F208781A900CB6494 /* Types+Appkit.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFABC01E208781A900CB6494 /* Types+Appkit.swift */; };
8687
DFABC022208781ED00CB6494 /* Types+UIKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFABC020208781C700CB6494 /* Types+UIKit.swift */; };
8788
DFABC023208781EE00CB6494 /* Types+UIKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFABC020208781C700CB6494 /* Types+UIKit.swift */; };
@@ -862,6 +863,7 @@
862863
2475B6D11FC37C8C0054CADD /* View+LTR.swift in Sources */,
863864
DF96F30920CB5DB7007CA714 /* View+Rect.swift in Sources */,
864865
DFEAF71220C8081800E33147 /* PinLayoutImpl+Size.swift in Sources */,
866+
DF96F30E20CB6362007CA714 /* PinLayoutObjCImpl.swift in Sources */,
865867
DFC97CA71E8A8F2C001545D5 /* PinLayout.swift in Sources */,
866868
2475B6CC1FC37C1C0054CADD /* PinLayoutImpl+Warning.swift in Sources */,
867869
DF1A5CBB208106A900725EF5 /* UIView+PinLayout.swift in Sources */,

Sources/Impl/Coordinates.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1818
// THE SOFTWARE.
1919

20-
import Foundation
20+
#if os(iOS) || os(tvOS)
21+
import UIKit
22+
#else
23+
import AppKit
24+
#endif
2125

2226
public func _pinlayoutSetUnitTest(displayScale: CGFloat) {
2327
Coordinates.displayScale = displayScale

Sources/UIView+PinLayout.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public extension UIView {
4040
}
4141

4242
// Expose PinLayout's objective-c interface.
43-
// @objc public var pinObjc: PinLayoutObjC {
44-
// return PinLayoutObjCImpl(view: self, keepTransform: true)
45-
// }
43+
@objc public var pinObjc: PinLayoutObjC {
44+
return PinLayoutObjCImpl(view: self, keepTransform: true)
45+
}
4646
}
4747

4848
#endif

0 commit comments

Comments
 (0)