[TIMOB-10781] iOS: Allow the customization of the "On Tint" parameter for iOS Switch (Ti.UI.Switch).
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-08-28T22:57:47.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Ygor Lemos |
Assignee | Eric Merriman |
Created | 2012-08-14T22:28:33.000+0000 |
Updated | 2017-03-22T22:17:57.000+0000 |
Description
On the Interface Builder, Apple allows to customize the "On Tint" of the UISwitch element, defining the internal button background color for the ON state.
We should map this in titanium, allowing to do something like:
Ti.UI.createSwitch({
value: true,
ontint: "green" // or any kind of color specification support by Ti on other elements.
});
This way we can allow users to have buttons with active background colors different from the stock blue option.
Duplicate of TIMOB-15436.
Closing ticket as duplicate and links to the related ticket have been provided above.