Skip to content

AudioPlayerView: Add support for device rotation

This merge request brings an addition to the Audio Player's view by:

  • Adding the support for the device's rotations.
  • The constraints are updated when a rotation is about to be performed in order to better fit the screen.
  • The scrub progress bar that now hides the scrubbing labels displaying the current scrubbing type in order to save some space in the screen when device is rotated in landscape.

This merge request also brings adjustments to:

  • The options navigation bar that is now aligned with the safe area when it is available to avoid any visual glitches.
  • The controls stack view that is now centered in the view and its spacing depends on the screen orientation in order to better fit the device's screen.

Audio_Player_-_rotation

Rotation large devices Audio_Player_-_Rotation_large_device
Rotation smaller devices Audio_Player_-_rotation_iPhone_6

Merge request reports

Loading