{ "id": "175927", "key": "TIMOB-28302", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-03-05T15:56:59.000+0000", "created": "2020-12-19T06:16:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "checkbox", "ios", "macos", "style", "switch" ], "versions": [], "issuelinks": [ { "id": "59071", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "175925", "key": "TIMOB-28300", "fields": { "summary": "Android: Add material \"chip\" style to Ti.UI.Switch", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-03-05T15:56:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15102", "name": "Mac", "description": "Mac authoring support" } ], "description": "*Summary:*\r\nApple's {{UISwitch}} support a checkbox style for Mac Catalyst apps as of Big Sur.\r\nhttps://developer.apple.com/documentation/uikit/uiswitchstyle\r\n\r\n*To-Do:*\r\nTitanium'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...\r\n* [Ti.UI.Android.SWITCH_STYLE_CHECKBOX|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-property-SWITCH_STYLE_CHECKBOX]\r\n* [Ti.UI.Android.SWITCH_STYLE_SWITCH|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-property-SWITCH_STYLE_SWITCH]\r\n* [Ti.UI.Android.SWITCH_STYLE_TOGGLEBUTTON|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Android-property-SWITCH_STYLE_TOGGLEBUTTON]\r\n\r\nWe 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.\r\n\r\n*Note:*\r\niOS (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.\r\n", "attachment": [], "flagged": false, "summary": "macOS: Add checkbox style to Ti.UI.Switch ", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "457943", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12353", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-12-19T10:03:52.000+0000", "updated": "2020-12-19T10:03:52.000+0000" }, { "id": "458340", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build and backport. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-05T08:02:08.000+0000", "updated": "2021-03-05T08:02:08.000+0000" }, { "id": "458346", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X for 10.0.0 release target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-05T15:56:55.000+0000", "updated": "2021-03-05T15:56:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }