Latest 0.1.2
Homepage https://github.com/X140Yu/XYVolumeHandler
License MIT
Platforms ios 8.0
Dependencies CWStatusBarNotification
Authors

🎶 Graceful handle the volume changes in your iOS apps like Instagram.

Requirement

iOS 8+, Objective-C And Swift

Installation

pod ‘XYVolumeHandler’

Usage

In the ViewController you want to be handled,

// ViewController.m
import XYVolumeHandler
override func viewDidLoad() {
   super.viewDidLoad()
   // Start monitor the volume taps     
   XYVolumeHandler.sharedInstance().startMonitor()
   self.xy_setupVolumeView()
}

now, you are ready to be handled.

If you want to do addition customizable things,

extension ViewController: XYVolumeHandlerCustomizable {
    // it you wish to disable the handler in certain viewController
    func useSystemVolumeView() -> Bool {
        return true
    }

    func volumeStyle() -> XYVolumeStyle {
        // return a different style than default style
    }
}

Licence

MIT

Latest podspec

{
    "name": "XYVolumeHandler",
    "version": "0.1.2",
    "summary": "Graceful handle the volume changes in your iOS apps like Instagram.",
    "description": "Graceful handle the volume changes in your iOS apps like Instagram. YEAH!",
    "homepage": "https://github.com/X140Yu/XYVolumeHandler",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "X140Yu": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/X140Yu/XYVolumeHandler.git",
        "tag": "0.1.2"
    },
    "source_files": "Classes/*.{h,m}",
    "dependencies": {
        "CWStatusBarNotification": []
    }
}

Pin It on Pinterest

Share This