Volumizer 1.0.5

Volumizer 1.0.5

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Fumitaka Watanabe.


Downloads

Total112
Week21
Month58

Installs

Apps10
Apps WeekApps This Week 3
powered by Segment

GitHub

Stars22
Watchers2
Forks1
Issues2
Contributors1
Pull Requests1

Code

Files2
LOCLines of Code 173


Volumizer 1.0.5

Volumizer

Volumizer replaces the system volume popup with a simple progress bar.

Features

  • Swift3.
  • Hide the system volume HUD typically displayed on volume button presses.
  • Show a simple progress bar like Instagram’s iOS app does.
  • Well easy to customize appearance.
  • Only support portrait mode.

Installation

Manually

Drag the Volumizer folder into your project and link the MediaPlayer and AVFoundation frameworks to your project.

Usage

Use of Volumizer is a simple way with one line. Just call configure() after set a window at least.

Volumizer.configure()

You can customize the bar’s appearance with VolumizerAppearanceOption.

/**
public enum VolumizerAppearanceOption {
   case overlayIsTranslucent(Bool) default is `true`.
   case overlayBackgroundBlurEffectStyle(UIBlurEffectStyle) default is `.extraLight`.
   case overlayBackgroundColor(UIColor) default is `.white`.
   case sliderProgressTintColor(UIColor) default is `.black`.
   case sliderTrackTintColor(UIColor) default is `.lightGray.withAlphaComponent(0.5)`
}
*/

let options: [VolumizerAppearanceOption] = [ .overlayIsTranslucent(true),
                                             .overlayBackgroundBlurEffect( .extraLight),
                                             .overlayBackgroundColor( .white),
                                             .sliderProgressTintColor( .black)]

let volumizer = Volumizer.configure(options)

/// To change options based on view's current appearance, call `update(options:_)` .
volumizer.update(options: otherOptions)

If you want to release volumizer ’s window, please call resign(). Once you released, the system volume popup will be shown again.

volumizer.resign()

WIP

  • [ ] support landscape mode.
  • [ ] support SPM.
  • [ ] manage window level to be below UIWindowLevelAlert .
  • [ ] Objective-C compatible.

License

This project is under the MIT license.