ActivityIndicatorAnimating.swift 535 B

12345678910111213141516171819
  1. //
  2. // Created by Tom Baranes on 21/08/16.
  3. // Copyright © 2016 IBAnimatable. All rights reserved.
  4. //
  5. import UIKit
  6. /// Protocol for all activity indicator classes.
  7. public protocol ActivityIndicatorAnimating: class {
  8. /**
  9. Define the animation for the activity indicator.
  10. - Parameter layer: The layer to execute the animation
  11. - Parameter size: The size of the activity indicator.
  12. - Parameter color: The color of the activity indicator.
  13. */
  14. func configureAnimation(in layer: CALayer, size: CGSize, color: UIColor)
  15. }