Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28302] macOS: Add checkbox style to Ti.UI.Switch

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-03-05T15:56:59.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.0
ComponentsMac
Labelscheckbox, ios, macos, style, switch
ReporterJoshua Quick
AssigneeJoshua Quick
Created2020-12-19T06:16:14.000+0000
Updated2021-03-05T15:56:59.000+0000

Description

*Summary:* Apple's UISwitch support a checkbox style for Mac Catalyst apps as of Big Sur. https://developer.apple.com/documentation/uikit/uiswitchstyle *To-Do:* Titanium's Ti.UI.Switch currently supports an Android-only [style](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Switch-property-style) property which can be assigned the following constants... * [Ti.UI.Android.SWITCH_STYLE_CHECKBOX](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-property-SWITCH_STYLE_CHECKBOX) * [Ti.UI.Android.SWITCH_STYLE_SWITCH](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-property-SWITCH_STYLE_SWITCH) * [Ti.UI.Android.SWITCH_STYLE_TOGGLEBUTTON](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-property-SWITCH_STYLE_TOGGLEBUTTON) We should move those constants to the Ti.UI module and add support for iOS builds. The TOGGLEBUTTON constant is Android-only and iOS should default to the SWITCH style instead. *Note:* iOS (ie: iPhone/iPad) does not support the checkbox style. This is only support by macOS apps. So, iOS app should use the switch style when assigned a checkbox style.

Comments

  1. Joshua Quick 2020-12-19

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12353
  2. Samir Mohammed 2021-03-05

    FR Passed, waiting on Jenkins build and backport.
  3. Christopher Williams 2021-03-05

    merged to master and 10_0_X for 10.0.0 release target.

JSON Source