Commit abd72e41 by Daniel Dahan

development: added prefix for PulseAnimation to MotionPulseAnimation

parent 542797fb
......@@ -30,7 +30,7 @@
import UIKit
open class Button: UIButton, Pulseable {
open class Button: UIButton, MotionPulseable {
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
......@@ -42,8 +42,8 @@ open class Button: UIButton, Pulseable {
/// A Pulse reference.
fileprivate var pulse: MotionPulse!
/// PulseAnimation value.
open var pulseAnimation: PulseAnimation {
/// MotionPulseAnimation value.
open var pulseAnimation: MotionPulseAnimation {
get {
return pulse.animation
}
......@@ -52,7 +52,7 @@ open class Button: UIButton, Pulseable {
}
}
/// PulseAnimation color.
/// MotionPulseAnimation color.
@IBInspectable
open var pulseColor: UIColor {
get {
......
......@@ -31,7 +31,7 @@
import UIKit
@objc(CollectionReusableView)
open class CollectionReusableView: UICollectionReusableView, Pulseable {
open class CollectionReusableView: UICollectionReusableView, MotionPulseable {
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
......@@ -43,8 +43,8 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable {
/// A Pulse reference.
fileprivate var pulse: MotionPulse!
/// PulseAnimation value.
open var pulseAnimation: PulseAnimation {
/// MotionPulseAnimation value.
open var pulseAnimation: MotionPulseAnimation {
get {
return pulse.animation
}
......@@ -53,7 +53,7 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable {
}
}
/// PulseAnimation color.
/// MotionPulseAnimation color.
@IBInspectable
open var pulseColor: UIColor {
get {
......
......@@ -31,7 +31,7 @@
import UIKit
@objc(CollectionViewCell)
open class CollectionViewCell: UICollectionViewCell, Pulseable {
open class CollectionViewCell: UICollectionViewCell, MotionPulseable {
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
......@@ -43,8 +43,8 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable {
/// A Pulse reference.
fileprivate var pulse: MotionPulse!
/// PulseAnimation value.
open var pulseAnimation: PulseAnimation {
/// MotionPulseAnimation value.
open var pulseAnimation: MotionPulseAnimation {
get {
return pulse.animation
}
......@@ -53,7 +53,7 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable {
}
}
/// PulseAnimation color.
/// MotionPulseAnimation color.
@IBInspectable
open var pulseColor: UIColor {
get {
......
......@@ -31,7 +31,7 @@
import UIKit
@objc(menu)
open class Menu: View, Springable {
open class Menu: View, MotionSpringable {
internal let spring = Spring()
open var views: [UIView] {
......
......@@ -30,8 +30,8 @@
import UIKit
@objc(PulseAnimation)
public enum PulseAnimation: Int {
@objc(MotionPulseAnimation)
public enum MotionPulseAnimation: Int {
case none
case center
case centerWithBacking
......@@ -42,9 +42,9 @@ public enum PulseAnimation: Int {
case pointWithBacking
}
public protocol Pulseable {
/// A reference to the PulseAnimation.
var pulseAnimation: PulseAnimation { get set }
public protocol MotionPulseable {
/// A reference to the MotionPulseAnimation.
var pulseAnimation: MotionPulseAnimation { get set }
/// A UIColor.
var pulseColor: UIColor { get set }
......@@ -54,7 +54,7 @@ public protocol Pulseable {
}
public struct MotionPulse {
/// A UIView that is Pulseable.
/// A UIView that is MotionPulseable.
fileprivate weak var pulseView: UIView?
/// The layer the pulse layers are added to.
......@@ -63,8 +63,8 @@ public struct MotionPulse {
/// Pulse layers.
fileprivate var layers = [CAShapeLayer]()
/// A reference to the PulseAnimation.
public var animation = MotionPulseAnimation.pointWithBacking
/// A reference to the MotionPulseAnimation.
public var animation = MotionMotionPulseAnimation.pointWithBacking
/// A UIColor.
public var color = Color.grey.base
......
......@@ -30,22 +30,22 @@
import UIKit
@objc(SpringDirection)
public enum SpringDirection: Int {
@objc(MotionSpringDirection)
public enum MotionSpringDirection: Int {
case up
case down
case left
case right
}
public protocol Springable {
/// A SpringDirection value.
var springDirection: SpringDirection { get set }
public protocol MotionSpringable {
/// A MotionSpringDirection value.
var springDirection: MotionSpringDirection { get set }
}
open class MotionSpring {
/// A SpringDirection value.
open var direction = SpringDirection.up
/// A MotionSpringDirection value.
open var direction = MotionSpringDirection.up
/// A Boolean that indicates if the menu is open or not.
open internal(set) var isOpened = false
......
......@@ -30,12 +30,12 @@
import UIKit
open class PulseView: View, Pulseable {
open class PulseView: View, MotionPulseable {
/// A Pulse reference.
fileprivate var pulse: MotionPulse!
/// PulseAnimation value.
open var pulseAnimation: PulseAnimation {
/// MotionPulseAnimation value.
open var pulseAnimation: MotionPulseAnimation {
get {
return pulse.animation
}
......@@ -44,7 +44,7 @@ open class PulseView: View, Pulseable {
}
}
/// PulseAnimation color.
/// MotionPulseAnimation color.
@IBInspectable
open var pulseColor: UIColor {
get {
......
......@@ -30,7 +30,7 @@
import UIKit
open class TableViewCell: UITableViewCell, Pulseable {
open class TableViewCell: UITableViewCell, MotionPulseable {
/**
A CAShapeLayer used to manage elements that would be affected by
the clipToBounds property of the backing layer. For example, this
......@@ -42,8 +42,8 @@ open class TableViewCell: UITableViewCell, Pulseable {
/// A Pulse reference.
fileprivate var pulse: MotionPulse!
/// PulseAnimation value.
open var pulseAnimation: PulseAnimation {
/// MotionPulseAnimation value.
open var pulseAnimation: MotionPulseAnimation {
get {
return pulse.animation
}
......@@ -52,7 +52,7 @@ open class TableViewCell: UITableViewCell, Pulseable {
}
}
/// PulseAnimation color.
/// MotionPulseAnimation color.
@IBInspectable
open var pulseColor: UIColor {
get {
......
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