[ALOY-786] Alloy parser for Switch should set the value property on iOS
|Fix Version/s||Alloy 1.3.0|
|Components||Titanium SDK, XML|
DescriptionThere is a known issue (TIMOB-9007) with Ti.UI.Switch where it won't render properly if the
valueproperty is not set on creation. The Alloy parser should detect when this property is not provided and add it to the creation dictionary.
- Daniel Sefton 2013-08-14 Hi Paul, It would help us out if you could provide an Alloy test case which reproduces the problem. Thanks!
- Paul Mietz Egli 2013-08-15
To reproduce, create an Alloy view with the following markup:
The switch control will not be displayed. I have sent a pull request on GitHub which fixes this issue: https://github.com/appcelerator/alloy/pull/219/commits
<Alloy> <Window> <Switch/> </Window> </Alloy>
- Tony Lukasavage 2013-08-16
original PR: https://github.com/appcelerator/alloy/pull/219
test app: https://github.com/appcelerator/alloy/tree/master/test/apps/ui/switch
Functional test should be confirmed on all platforms that support. Some guidance for these tests:
iOSMake sure that a single switch shows up, that's it.
Androidmake sure a default switch, a switch with different title(On/Off) properties, and a checkbox appear. These properties are claimed to be supported on Mobileweb and tizen as well.