1919
2020import Foundation
2121
22- public enum LayoutDirection {
22+ @ objc public enum LayoutDirection : Int {
2323 case auto
2424 case ltr
2525 case rtl
@@ -28,7 +28,7 @@ public enum LayoutDirection {
2828/// Control how PinLayout will calls `UIView.safeAreaInsetsDidChange` when the `UIView.pin.safeArea` change.
2929/// This support is usefull only on iOS 8/9/10. On iOS 11 `UIView.safeAreaInsetsDidChange` is supported
3030/// natively so this settings have no impact.
31- public enum PinSafeAreaInsetsDidChangeMode {
31+ @ objc public enum PinSafeAreaInsetsDidChangeMode : Int {
3232 /// PinLayout won't call `UIView.safeAreaInsetsDidChange` on iOS 8/9/10.
3333 case disable
3434 /// PinLayout will call `UIView.safeAreaInsetsDidChange` only if the UIView implement the PinSafeAreaInsetsUpdate protocol.
@@ -38,11 +38,11 @@ public enum PinSafeAreaInsetsDidChangeMode {
3838}
3939
4040@objc public class Pin : NSObject {
41- public static var layoutDirection = LayoutDirection . ltr
41+ @ objc public static var layoutDirection = LayoutDirection . ltr
4242
4343 #if os(iOS) || os(tvOS)
4444 /// Controls how PinLayout will calls `UIView.safeAreaInsetsDidChange` when the `UIView.pin.safeArea` change.
45- public static var safeAreaInsetsDidChangeMode : PinSafeAreaInsetsDidChangeMode = . optIn {
45+ @ objc public static var safeAreaInsetsDidChangeMode : PinSafeAreaInsetsDidChangeMode = . optIn {
4646 didSet {
4747 PinSafeArea . safeAreaInsetsDidChangeMode = safeAreaInsetsDidChangeMode
4848 }
@@ -51,9 +51,9 @@ public enum PinSafeAreaInsetsDidChangeMode {
5151
5252
5353#if DEBUG
54- public static var logWarnings = true
54+ @ objc public static var logWarnings = true
5555#else
56- public static var logWarnings = false
56+ @ objc public static var logWarnings = false
5757#endif
5858
5959 /**
@@ -65,15 +65,15 @@ public enum PinSafeAreaInsetsDidChangeMode {
6565
6666 static fileprivate var isInitialized = false
6767
68- public static func initPinLayout( ) {
68+ @ objc public static func initPinLayout( ) {
6969 #if os(iOS) || os(tvOS)
7070 guard !Pin. isInitialized else { return }
7171 PinSafeArea . initSafeAreaSupport ( )
7272 Pin . isInitialized = true
7373 #endif
7474 }
7575
76- public static func layoutDirection( _ direction: LayoutDirection ) {
76+ @ objc public static func layoutDirection( _ direction: LayoutDirection ) {
7777 self . layoutDirection = direction
7878 }
7979
0 commit comments