Skip to content

Initial Release

Compare
Choose a tag to compare
@AndrewBoryk AndrewBoryk released this 19 Feb 04:39
· 14 commits to master since this release

_Hello World!_
This is the first version released for ABVolumeControl, on 2/11/17. Get a load of all the features that were included in this release:

  • Styles! Multiple styles are available for use with ABVolumeControl, which allow for the control to be disabled, enabled, or hidden and used for its delegate. Simply call 'setControlStyle' on ABVolumeControl's sharedManager.
    • ABVolumeControlStyleMinimal: Displays a volume bar above the UIStatusBar, 2px in height.
    • ABVolumeControlStyleStatusBar: Similar to the 'minimal' style, with added space between the control and the top of the screen, allowing the control to cover the UIStatusBar. This makes the control more visible.
    • ABVolumeControlStyleNone: This style removes the ABVolumeControl from appearing and returns the Apple provided MPVolumeView.
    • ABVolumeControlStyleCustom: Does not display an ABVolumeControl or MPVolumeView. Instead, this style allows the developer to utilize the delegate methods of ABVolumeControl to make their own custom volumeView.
  • 'setControlTheme' on the ABVolumeView sharedManager to switch between two themes: Light and Dark.
  • Options for customizing the Light and Dark themes, by changing the accent color defaults for the themes.
  • 'setVolumeLevel' on the ABVolumeView sharedManager to set the volume of the user's device programmatically. Pairs nicely with using custom volumeSliders.
  • Functions for managing ABVolumeControls hidden state.
    • 'dontShowVolumeBar': Makes sure that the volumeView is not shown for 1 second.
    • 'showVolumeBar': Shows the volumeView immediately.
    • 'setDontShowVolumeBar': Ensures that the volumeView won't be shown indefinitely, until specified otherwise.
  • Delegate method 'control:didChangeVolume:' which is called when volume of the user's device is changed, and can be used for setting up one's own custom volumeView.

Tweet at me with future feature suggestions! @TrepIsLife