Commit 1dd83602 by Daniel Dahan

additional updates to @objc declarations for enums

parent e9f9a8e0
...@@ -32,7 +32,7 @@ import UIKit ...@@ -32,7 +32,7 @@ import UIKit
public typealias AnimationFillModeType = String public typealias AnimationFillModeType = String
@objc @objc(AnimationFillMode)
public enum AnimationFillMode: Int { public enum AnimationFillMode: Int {
case forwards case forwards
case backwards case backwards
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(BorderWidthPreset)
public enum BorderWidthPreset: Int { public enum BorderWidthPreset: Int {
case none case none
case border1 case border1
......
...@@ -53,7 +53,7 @@ public class BottomNavigationFadeAnimatedTransitioning : NSObject, UIViewControl ...@@ -53,7 +53,7 @@ public class BottomNavigationFadeAnimatedTransitioning : NSObject, UIViewControl
} }
} }
@objc @objc(BottomNavigationTransitionAnimation)
public enum BottomNavigationTransitionAnimation: Int { public enum BottomNavigationTransitionAnimation: Int {
case none case none
case fade case fade
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
import UIKit import UIKit
import AVFoundation import AVFoundation
@objc @objc(CaptureMode)
public enum CaptureMode: Int { public enum CaptureMode: Int {
case photo case photo
case video case video
......
...@@ -33,7 +33,7 @@ import AVFoundation ...@@ -33,7 +33,7 @@ import AVFoundation
private var CaptureSessionAdjustingExposureContext: UInt8 = 1 private var CaptureSessionAdjustingExposureContext: UInt8 = 1
@objc @objc(CaptureSessionPreset)
public enum CaptureSessionPreset: Int { public enum CaptureSessionPreset: Int {
case presetPhoto case presetPhoto
case presetHigh case presetHigh
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(CornerRadiusPreset)
public enum CornerRadiusPreset: Int { public enum CornerRadiusPreset: Int {
case none case none
case cornerRadius1 case cornerRadius1
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(DepthPreset)
public enum DepthPreset: Int { public enum DepthPreset: Int {
case none case none
case depth1 case depth1
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
@objc @objc(Direction)
public enum Direction: Int { public enum Direction: Int {
case up case up
case down case down
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(EdgeInsetsPreset)
public enum EdgeInsetsPreset: Int { public enum EdgeInsetsPreset: Int {
case none case none
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(GridAxisDirection)
public enum GridAxisDirection: Int { public enum GridAxisDirection: Int {
case none case none
case horizontal case horizontal
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(InterimSpacePreset)
public enum InterimSpacePreset: Int { public enum InterimSpacePreset: Int {
case none case none
case interimSpace1 case interimSpace1
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(AnimationRotationMode)
public enum AnimationRotationMode: Int { public enum AnimationRotationMode: Int {
case none case none
case auto case auto
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(ImageFormat)
public enum ImageFormat: Int { public enum ImageFormat: Int {
case png case png
case jpeg case jpeg
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(MaterialGravity)
public enum MaterialGravity: Int { public enum MaterialGravity: Int {
case Center case Center
case Top case Top
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
import UIKit import UIKit
/// NavigationBar styles. /// NavigationBar styles.
@objc @objc(NavigationBarStyle)
public enum NavigationBarStyle: Int { public enum NavigationBarStyle: Int {
case Tiny case Tiny
case Default case Default
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(NavigationDrawerPosition)
public enum NavigationDrawerPosition: Int { public enum NavigationDrawerPosition: Int {
case left case left
case right case right
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(PulseAnimation)
public enum PulseAnimation: Int { public enum PulseAnimation: Int {
case none case none
case center case center
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
@objc @objc(ShapePreset)
public enum ShapePreset: Int { public enum ShapePreset: Int {
case none case none
case square case square
......
...@@ -30,19 +30,19 @@ ...@@ -30,19 +30,19 @@
import UIKit import UIKit
@objc @objc(SwitchStyle)
public enum SwitchStyle: Int { public enum SwitchStyle: Int {
case light case light
case dark case dark
} }
@objc @objc(SwitchState)
public enum SwitchState: Int { public enum SwitchState: Int {
case on case on
case off case off
} }
@objc @objc(SwitchSize)
public enum SwitchSize: Int { public enum SwitchSize: Int {
case small case small
case medium case medium
...@@ -360,7 +360,7 @@ public class Switch: UIControl { ...@@ -360,7 +360,7 @@ public class Switch: UIControl {
- Parameter sender: A UIButton. - Parameter sender: A UIButton.
- Parameter event: A UIEvent. - Parameter event: A UIEvent.
*/ */
@objc(handleTouchUpOutsideOrCanceled:event:) @objc
internal func handleTouchUpOutsideOrCanceled(sender: FabButton, event: UIEvent) { internal func handleTouchUpOutsideOrCanceled(sender: FabButton, event: UIEvent) {
if let v: UITouch = event.touches(for: sender)?.first { if let v: UITouch = event.touches(for: sender)?.first {
let q: CGFloat = sender.x + v.location(in: sender).x - v.previousLocation(in: sender).x let q: CGFloat = sender.x + v.location(in: sender).x - v.previousLocation(in: sender).x
...@@ -369,6 +369,7 @@ public class Switch: UIControl { ...@@ -369,6 +369,7 @@ public class Switch: UIControl {
} }
/// Handles the TouchUpInside event. /// Handles the TouchUpInside event.
@objc
internal func handleTouchUpInside() { internal func handleTouchUpInside() {
toggle() toggle()
} }
...@@ -378,7 +379,7 @@ public class Switch: UIControl { ...@@ -378,7 +379,7 @@ public class Switch: UIControl {
- Parameter sender: A UIButton. - Parameter sender: A UIButton.
- Parameter event: A UIEvent. - Parameter event: A UIEvent.
*/ */
@objc(handleTouchDragInside:event:) @objc
internal func handleTouchDragInside(sender: FabButton, event: UIEvent) { internal func handleTouchDragInside(sender: FabButton, event: UIEvent) {
if let v = event.touches(for: sender)?.first { if let v = event.touches(for: sender)?.first {
let q: CGFloat = max(min(sender.x + v.location(in: sender).x - v.previousLocation(in: sender).x, onPosition), offPosition) let q: CGFloat = max(min(sender.x + v.location(in: sender).x - v.previousLocation(in: sender).x, onPosition), offPosition)
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import UIKit import UIKit
@objc @objc(TabBarLineAlignment)
public enum TabBarLineAlignment: Int { public enum TabBarLineAlignment: Int {
case top case top
case bottom case bottom
......
...@@ -33,7 +33,7 @@ import UIKit ...@@ -33,7 +33,7 @@ import UIKit
public typealias AnimationTransitionType = String public typealias AnimationTransitionType = String
public typealias AnimationTransitionSubTypeType = String public typealias AnimationTransitionSubTypeType = String
@objc @objc(AnimationTransition)
public enum AnimationTransition: Int { public enum AnimationTransition: Int {
case Fade case Fade
case MoveIn case MoveIn
...@@ -41,7 +41,7 @@ public enum AnimationTransition: Int { ...@@ -41,7 +41,7 @@ public enum AnimationTransition: Int {
case Reveal case Reveal
} }
@objc @objc(AnimationTransitionSubType)
public enum AnimationTransitionSubType: Int { public enum AnimationTransitionSubType: Int {
case Right case Right
case Left case Left
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment