Fixed a bug with the switch

Fixed a bug with the switch which would remain active even if hidden, disabled, or has userInteractionEnabled set to NO.

https://github.com/beautify/beautify-ios/issues/50