Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Releases: gizmosachin/VolumeBar

Fix frame when system status bar is hidden

14 Mar 07:13
Compare
Choose a tag to compare

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

14 Mar 07:12
0c27860
Compare
Choose a tag to compare
  • 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 (see VolumeBarMock 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

02 Nov 03:51
4e467ca
Compare
Choose a tag to compare
Merge pull request #13 from gizmosachin/2.0.6

iPhone X support