diff --git a/AFViewHelper.podspec b/AFViewHelper.podspec index 73ad9fe..a49b690 100644 --- a/AFViewHelper.podspec +++ b/AFViewHelper.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AFViewHelper' - s.version = '4.2.3' + s.version = '4.2.4' s.license = 'MIT' s.summary = 'Autolayout and Animation UIVIew Extension for Swift 3.0.' s.homepage = 'https://github.com/melvitax/ViewHelper' diff --git a/Sources/InspectableButton.swift b/Sources/InspectableButton.swift index dda3d7e..0500d04 100644 --- a/Sources/InspectableButton.swift +++ b/Sources/InspectableButton.swift @@ -1,6 +1,6 @@ // // InspectableButton.swift -// ViewHelper: Version 4.2.3 +// ViewHelper: Version 4.2.4 // Created by Melvin Rivera on 6/28/16. // https://github.com/melvitax/ViewHelper // @@ -18,7 +18,7 @@ import QuartzCore /** The layer border color */ - @IBInspectable override var borderColor: UIColor { + @IBInspectable override public var borderColor: UIColor { get { return layer.borderColor == nil ? UIColor.clear : UIColor(cgColor: layer.borderColor!) } @@ -30,7 +30,7 @@ import QuartzCore /** The layer border width */ - @IBInspectable override var borderWidth: CGFloat { + @IBInspectable override public var borderWidth: CGFloat { get { return layer.borderWidth } @@ -45,7 +45,7 @@ import QuartzCore /** The layer corner radius */ - @IBInspectable override var cornerRadius: CGFloat { + @IBInspectable override public var cornerRadius: CGFloat { get { return layer.cornerRadius } @@ -62,7 +62,7 @@ import QuartzCore /** The shadow color of the layer */ - @IBInspectable override var shadowColor: UIColor { + @IBInspectable override public var shadowColor: UIColor { get { return layer.shadowColor == nil ? UIColor.clear : UIColor(cgColor: layer.shadowColor!) } @@ -75,7 +75,7 @@ import QuartzCore /** The shadow offset of the layer */ - @IBInspectable override var shadowOffset:CGSize { + @IBInspectable override public var shadowOffset:CGSize { get { return layer.shadowOffset } @@ -89,7 +89,7 @@ import QuartzCore - Returns: Float */ - @IBInspectable override var shadowOpacity:Float { + @IBInspectable override public var shadowOpacity:Float { get { return layer.shadowOpacity } @@ -103,7 +103,7 @@ import QuartzCore - Returns: CGFloat */ - @IBInspectable override var shadowRadius:CGFloat { + @IBInspectable override public var shadowRadius:CGFloat { get { return layer.shadowRadius } diff --git a/Sources/InspectableView.swift b/Sources/InspectableView.swift index 35958ea..34f8107 100644 --- a/Sources/InspectableView.swift +++ b/Sources/InspectableView.swift @@ -1,6 +1,6 @@ // // InspectableView.swift -// ViewHelper: Version 4.2.3 +// ViewHelper: Version 4.2.4 // Created by Melvin Rivera on 7/24/14. // https://github.com/melvitax/ViewHelper // @@ -18,7 +18,7 @@ import QuartzCore /** The layer border color */ - @IBInspectable override var borderColor: UIColor { + @IBInspectable override public var borderColor: UIColor { get { return layer.borderColor == nil ? UIColor.clear : UIColor(cgColor: layer.borderColor!) } @@ -30,7 +30,7 @@ import QuartzCore /** The layer border width */ - @IBInspectable override var borderWidth: CGFloat { + @IBInspectable override public var borderWidth: CGFloat { get { return layer.borderWidth } @@ -45,7 +45,7 @@ import QuartzCore /** The layer corner radius */ - @IBInspectable override var cornerRadius: CGFloat { + @IBInspectable override public var cornerRadius: CGFloat { get { return layer.cornerRadius } @@ -62,7 +62,7 @@ import QuartzCore /** The shadow color of the layer */ - @IBInspectable override var shadowColor: UIColor { + @IBInspectable override public var shadowColor: UIColor { get { return layer.shadowColor == nil ? UIColor.clear : UIColor(cgColor: layer.shadowColor!) } @@ -75,7 +75,7 @@ import QuartzCore /** The shadow offset of the layer */ - @IBInspectable override var shadowOffset:CGSize { + @IBInspectable override public var shadowOffset:CGSize { get { return layer.shadowOffset } @@ -89,7 +89,7 @@ import QuartzCore - Returns: Float */ - @IBInspectable override var shadowOpacity:Float { + @IBInspectable override public var shadowOpacity:Float { get { return layer.shadowOpacity } @@ -103,7 +103,7 @@ import QuartzCore - Returns: CGFloat */ - @IBInspectable override var shadowRadius:CGFloat { + @IBInspectable override public var shadowRadius:CGFloat { get { return layer.shadowRadius } diff --git a/Sources/ViewAnimation.swift b/Sources/ViewAnimation.swift index 47fd5a4..5d04b7b 100644 --- a/Sources/ViewAnimation.swift +++ b/Sources/ViewAnimation.swift @@ -1,6 +1,6 @@ // // ViewAnimation.swift -// ViewHelper: Version 4.2.3 +// ViewHelper: Version 4.2.4 // Created by Melvin Rivera on 11/23/15. // https://github.com/melvitax/ViewHelper // @@ -11,7 +11,7 @@ import UIKit /** A preset animation behavior. */ -enum AnimationType { +public enum AnimationType { case slideLeft, slideRight, slideDown, slideUp, squeezeLeft, squeezeRight, squeezeDown, squeezeUp, fadeIn, fadeOut, fadeOutIn, fadeInLeft, fadeInRight, fadeInDown, fadeInUp, zoomIn, zoomOut, fall, shake, pop, flipX, flipY, morph, squeeze, flash, wobble, swing static let allValues = [shake, pop, morph, squeeze, wobble, swing, flipX, flipY, fall, squeezeLeft, squeezeRight, squeezeDown, squeezeUp, slideLeft, slideRight, slideDown, slideUp, fadeIn, fadeOut, fadeOutIn, fadeInLeft, fadeInRight, fadeInDown, fadeInUp, zoomIn, zoomOut, flash] var description: String { @@ -24,7 +24,7 @@ enum AnimationType { /** Easing curve to be used in animation. */ -enum AnimationEasingCurve { +public enum AnimationEasingCurve { case easeIn, easeOut, easeInOut, linear, easeInSine, easeOutSine, easeInOutSine, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint, easeInExpo, easeOutExpo, easeInOutExpo, easeInCirc, easeOutCirc, easeInOutCirc, easeInBack, easeOutBack, easeInOutBack, spring static let allValues = [easeIn, easeOut, easeInOut, linear, easeInSine, easeOutSine, easeInOutSine, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint, easeInExpo, easeOutExpo, easeInOutExpo, easeInCirc, easeOutCirc, easeInOutCirc, easeInBack, easeOutBack, easeInOutBack, spring] var timingFunction:CAMediaTimingFunction { @@ -75,7 +75,7 @@ enum AnimationEasingCurve { } } -extension UIView { +public extension UIView { typealias AnimationCompletionHandler = () -> Void diff --git a/Sources/ViewAutoLayout.swift b/Sources/ViewAutoLayout.swift index 64e959a..8842641 100644 --- a/Sources/ViewAutoLayout.swift +++ b/Sources/ViewAutoLayout.swift @@ -1,6 +1,6 @@ // // ViewAutoLayout.swift -// ViewHelper: Version 4.2.3 +// ViewHelper: Version 4.2.4 // Created by Melvin Rivera on 11/5/15. // https://github.com/melvitax/ViewHelper // @@ -9,7 +9,7 @@ import Foundation import UIKit -extension UIView { +public extension UIView { // MARK: Init diff --git a/Sources/ViewControllerAutoLayout.swift b/Sources/ViewControllerAutoLayout.swift index 4f8db1f..4b1c409 100644 --- a/Sources/ViewControllerAutoLayout.swift +++ b/Sources/ViewControllerAutoLayout.swift @@ -1,6 +1,6 @@ // // ViewControllerAutoLayout.swift -// ViewHelper: Version 4.2.3 +// ViewHelper: Version 4.2.4 // Created by Melvin Rivera on 11/5/15. // https://github.com/melvitax/ViewHelper // @@ -8,7 +8,7 @@ import Foundation import UIKit -extension UIViewController { +public extension UIViewController { /** diff --git a/Sources/ViewEffects.swift b/Sources/ViewEffects.swift index 94f9878..5bc52b1 100644 --- a/Sources/ViewEffects.swift +++ b/Sources/ViewEffects.swift @@ -1,6 +1,6 @@ // // ViewEffects.swift -// ViewHelper: Version 4.2.3 +// ViewHelper: Version 4.2.4 // Created by Melvin Rivera on 7/2/14. // https://github.com/melvitax/ViewHelper // @@ -10,11 +10,7 @@ import QuartzCore -@IBDesignable extension UIView { - - open override func prepareForInterfaceBuilder() { - self.setNeedsDisplay() - } +@IBDesignable public extension UIView { // MARK: Border