VolumeBar
-
The shared VolumeBar singleton.
Declaration
Swift
public static let shared = VolumeBar()
-
The stack view that displays the volume bar.
Declaration
Swift
public var view: UIStackView?
-
The minimum visible duration that VolumeBar will appear on screen after a volume button is pressed. If VolumeBar is already showing and a volume button is pressed, VolumeBar will continue to show and the duration it’s displayed on screen will be extended by this number of seconds.
Declaration
Swift
public var minimumVisibleDuration: TimeInterval = 1.5
-
The animation used to show VolumeBar.
Declaration
Swift
public var showAnimation: VolumeBarAnimation = .fadeIn
-
The animation used to hide VolumeBar.
Declaration
Swift
public var hideAnimation: VolumeBarAnimation = .fadeOut
-
The current style of VolumeBar.
Declaration
Swift
public var style: VolumeBarStyle = VolumeBarStyle()
-
Start VolumeBar and automatically show when the volume changes.
Declaration
Swift
public func start()
-
Stop VolumeBar from automatically showing when the volume changes.
Declaration
Swift
public func stop()
-
Show VolumeBar immediately using the current
showAnimation
.Declaration
Swift
public func show()
-
Show VolumeBar immediately using the current
hideAnimation
.Declaration
Swift
@objc public func hide()