Skip to content

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

License

Notifications You must be signed in to change notification settings

X140Yu/XYVolumeHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XYVolumeHandler

Build Status License: MIT

🎶 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published