Releases: gizmosachin/VolumeBar
Fix frame when system status bar is hidden
When the system status bar is hidden, UIApplication.shared.statusBarFrame
returns a zero frame.
VolumeBar sets the internal frame of its window and view when start
is called. Since it previously used UIApplication.shared.statusBarFrame
, which could be zero when start
is called, this could cause an incorrect layout. Now we use UIScreen.main.bounds
instead (and wrap all layout parameters in abs
just in case).
We can't use UIApplication.shared.keyWindow?.bounds
because the VolumeBar might be started before the key window is available. Note that the use of UIScreen.main.bounds
won't work on iPad in split-screen, but VolumeBar doesn't currently work on iPad at all.
3.0
- Proper safe areas and iPhone X support (#10)
- Better customization via
VolumeBarStyle
with presets - Customizable animations via
VolumeBarAnimation
with presets - Demo app simulator support
SystemVolumeManager
that can be mocked for UI tests (seeVolumeBarMock
in the Sample project)
Please see the new documentation and sample project for examples to help migrate your app from a previous major version of VolumeBar.
Please file an issue if something isn't covered adequately in the docs or this new version breaks your app.
iPhone X support
Merge pull request #13 from gizmosachin/2.0.6 iPhone X support