Skip to main content

typing-animation-view-properties

dotSize

open var dotSize: CGSize 

opacityFromValue

open var opacityFromValue: Double = 0.9

opacityToValue

open var opacityToValue: Double = 0.3

opacityDuration

open var opacityDuration: TimeInterval = 1

numberOfDots

open var numberOfDots: Int = 3

dotSpacing

open var dotSpacing: CGFloat = 2

viewWidthConstant

Defines the width of the view It is computed by multiplying the dotLayer width with spacing and number of dots. Also because we use the replicator layer, we mustn't forgot to remove the last spacing, otherwise it has trailing margin.

public var viewWidthConstant: CGFloat 

dotLayer

open private(set) lazy var dotLayer: CALayer 

replicatorLayer

open private(set) lazy var replicatorLayer 

Methods

setUpLayout()

override open func setUpLayout() 

setUpAppearance()

override open func setUpAppearance() 

startAnimating()

open func startAnimating()

Did you find this page helpful?