The switch is bound to the feature isEnabled and the subfoot below the switch is bound to the calculated enabledSectionTitle property, which allows us to make the footer dependent on the hotspot enabled state. Furthermore, the entire second part is shown or hidden by tying its visibility to the property isEnabled .

The additional label on the right side is linked to the calculated hotspotEnabled property that signals the hotspot's current state on the main screen without having to navigate to the hotspot setting screen.

If you'd like to learn more about this approach, check out the Swift Talk series for a form of library, the first three and the last two episodes are publicly available.