supporting toggle switch for ios