Called when the value property is changed either by code or by the user.
Disable an iOSTextField when the switch is off and enable it when on: