Latest 0.2.0
Homepage https://github.com/uxmstudio/UXMVolumeOverlay
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

A drop in replacement for the annoying iOS volume overlay; inspired by Instagram & Snapchat.

Screenshots

uxmvolumescreenshot

Requirements

  • iOS 8 or above
  • Xcode 7 or above
  • Swift 3.0

Installation

UXMVolumeOverlay is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "UXMVolumeOverlay"

Usage

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)

Interface

func show()
func hide()

var backgroundColor:UIColor

Demo Project

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.

Note

This will not get rid of the ringer dialog, only the volume dialog.

Author

Chris Anderson:

License

UXMVolumeOverlay is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UXMVolumeOverlay",
    "version": "0.2.0",
    "summary": "A drop in replacement for the iOS volume overlay.",
    "description": "A drop in replacement for the annoying volume overlay; inspired by Instagram & Snapchat.",
    "homepage": "https://github.com/uxmstudio/UXMVolumeOverlay",
    "license": "MIT",
    "authors": {
        "Chris Anderson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/uxmstudio/UXMVolumeOverlay.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "ios": {
        "source_files": "Pod/Classes/**/*"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This