VolumeBarAnimation

public struct VolumeBarAnimation

A value type wrapping a VolumeBarAnimationBlock.

  • A block used to animate VolumeBar.

    VolumeBar does not perform any state changes before animations. Your block is responsible for the full lifecycle of your animation. See VolumeBarAnimation+Presets.swift for examples of how to do this.

    Parameters:

    • view: The internal view to operate on as part of this animation.
    • completionHandler: The completion handler that you must call when your animation completes.

    Declaration

    Swift

    public typealias Block = ((UIView, VolumeBarAnimation.CompletionHandler?) -> Void)
  • Declaration

    Swift

    public struct VolumeBarAnimation
  • Declaration

    Swift

    public struct VolumeBarAnimation
  • A simple fade in animation.

    Declaration

    Swift

    public static let fadeIn = VolumeBarAnimation({ (view, completion) in
  • A simple fade out animation.

    Declaration

    Swift

    public static let fadeOut = VolumeBarAnimation({ (view, completion) in
  • Fade in and slide down from above the status bar.

    Declaration

    Swift

    public static let slideAndFadeIn = VolumeBarAnimation({ (view, completion) in
  • Fade out and slide up to above the status bar.

    Declaration

    Swift

    public static let slideAndFadeOut = VolumeBarAnimation({ (view, completion) in