Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.57 KB

README.md

File metadata and controls

66 lines (53 loc) · 1.57 KB

eVolumeBar

eVolumeBar replaces the default iOS volume HUD with a less distractive and more user-friendly view.

Usage

Add the eVolumeBar.swift source file to your xcode project and add the eVolumeBar view to your existing views. ( look at exmaples below or check the smaple project )

Themes

Default:

code:

var volume = eVolumeBar()
view.addSubview(volume)

result:
img

Default with custom icon color:

code:

var volume = eVolumeBar().withVolumeIconColor(.orange)
view.addSubview(volume)

result:
img

Default with tint:

code:

var volume = eVolumeBar().withTint(.cyan)
view.addSubview(volume)

result:
img

Default with custom icon:

code: default volume icon size in 20x20

var volume = eVolumeBar(withImageName: "space")
view.addSubview(volume)

result:
img

Default with custom icons for volumes:

code:

var volume = eVolumeBar(withImages: ["mute","min","max"], forVolumes: [0.0,0.5,1.0])
view.addSubview(volume)

result:
img

Author

Eyad Murshid, eam.east@gmail.com

License

eVolumeBar is free software, and may be redistributed under the terms specified in the LICENSE file.