LFTPulseAnimation

class LFTPulseAnimation : CALayer

The LFTPulseAnimation for displaying an pulse effect

  • The radius

    Declaration

    Swift

    var radius: CGFloat
  • FromValue Radius

    Declaration

    Swift

    var fromValueForRadius: Float
  • FromValue Alpha

    Declaration

    Swift

    var fromValueForAlpha: Float
  • keyTime Half Opacity

    Declaration

    Swift

    var keyTimeForHalfOpacity: Float
  • The animation duration

    Declaration

    Swift

    var animationDuration: TimeInterval
  • The interval

    Declaration

    Swift

    var pulseInterval: TimeInterval
  • Use Timing Function Boolean

    Declaration

    Swift

    var useTimingFunction: Bool
  • The animation group

    Declaration

    Swift

    var animationGroup: CAAnimationGroup
  • Repetitions

    Declaration

    Swift

    var repetitions: Float
  • Need to implement that, because otherwise it can’t find the constructor init(layer:AnyObject!) Doesn’t seem to look in the super class

    Declaration

    Swift

    override init(layer: Any)
  • Default initializer

    Declaration

    Swift

    init(repeatCount: Float = Float.infinity, radius: CGFloat, position: CGPoint)

    Parameters

    repeatCount

    The repeat count

    radius

    The radius

    position

    The position

  • Initializer with NSCoder. Unsupported will return nil

    Declaration

    Swift

    required init?(coder aDecoder: NSCoder)

    Parameters

    aDecoder

    The decoder

  • Set Pulse Radius

    Declaration

    Swift

    func setPulseRadius(_ radius: CGFloat)

    Parameters

    radius

    The radius

  • Setup Animation Group

    Declaration

    Swift

    private func setupAnimationGroup()
  • Create Scale Animation

    Declaration

    Swift

    private func createScaleAnimation() -> CABasicAnimation
  • Create Opacity Animation

    Declaration

    Swift

    private func createOpacityAnimation() -> CAKeyframeAnimation