Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10781] iOS: Allow the customization of the "On Tint" parameter for iOS Switch (Ti.UI.Switch).

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2016-08-28T22:57:47.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterYgor Lemos
AssigneeEric Merriman
Created2012-08-14T22:28:33.000+0000
Updated2017-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.

Comments

  1. Hans Knöchel 2016-08-28

    Duplicate of TIMOB-15436.
  2. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket have been provided above.

JSON Source