Back to Firefox Ios

``ComponentLibrary/PaddedSwitch``

BrowserKit/Sources/ComponentLibrary/Documentation.docc/General Components/PaddedSwitch.md

139.0579 B
Original Source

ComponentLibrary/PaddedSwitch

The control used as an on/off toggle.

Overview

PaddedSwitch is a subclass of UIView. It contains a ThemedSwitch, adding some padding for the width of that control. This switch view should be configured through its view model PaddedSwitchViewModel.

Illustration

This image is illustrative only. For precise examples of iOS implementation, please run the SampleApplication.

Topics

Switch

  • ThemedSwitch

View Model

  • PaddedSwitchViewModel