TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Chris Anderson.
A drop in replacement for the annoying iOS volume overlay; inspired by Instagram & Snapchat.
UXMVolumeOverlay is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UXMVolumeOverlay"
Using the volume overlay is just drag and drop. Simply call:
UXMVolumeOverlay.sharedOverlay.load()
You can create your own custom indicator by extending the protocol UXMVolumeProgress. This allows you to have any view display the progress indicator. The standard indicator is a UIProgressView like Instagram uses, but anything is possible.
\\\ UXMVolumeProgress
var view: UIView { get }
func progressChanged(progress: Float)
Your custom UXMVolumeProgress object is then passed to the handler on load.
var indicator = CustomIndicator()
UXMVolumeOverlay.sharedOverlay.load(indicator)
func show()
func hide()
var backgroundColor:UIColor
To run the example project, clone the repo with git clone https://github.com/uxmstudio/UXMVolumeOverlay.git
, and run pod install
from the Example directory first.
This will not get rid of the ringer dialog, only the volume dialog.
Chris Anderson:
UXMVolumeOverlay is available under the MIT license. See the LICENSE file for more info.