Instance Property

volumeWarningSliderImage

The image used to designate the European Union volume limit.

Declaration

var volumeWarningSliderImage: UIImage? { get set }

Discussion

The image contained by this property is displayed on top of the maximumVolumeSliderImage(for:). The image must be visually distinct from the maximumVolumeSliderImage and use a color similar to the default in order to convey a sense of warning to the user.

For testing purposes, set the EU Volume Limit setting in the Developer menu of the Settings app to always enable the volume limit.

See Also

Customizing the Volume Slider

func maximumVolumeSliderImage(for: UIControl.State) -> UIImage?

Returns the maximum volume image associated with the specified control state.

func minimumVolumeSliderImage(for: UIControl.State) -> UIImage?

Returns the minimum volume image associated with the specified control state.

func setMaximumVolumeSliderImage(UIImage?, for: UIControl.State)

Assigns a maximum volume slider image to the specified control states.

func setMinimumVolumeSliderImage(UIImage?, for: UIControl.State)

Assigns a minimum volume slider image to the specified control states.

func setVolumeThumbImage(UIImage?, for: UIControl.State)

Assigns a thumb image to the specified control states.

func volumeSliderRect(forBounds: CGRect) -> CGRect

Returns the drawing rectangle for the slider’s track.

func volumeThumbImage(for: UIControl.State) -> UIImage?

Returns the thumb image associated with the specified control state.

func volumeThumbRect(forBounds: CGRect, volumeSliderRect: CGRect, value: Float) -> CGRect

Returns the drawing rectangle for the volume slider’s thumb image.