[TIMOB-23584] Add support for iOS 9 Text Style additions
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-07-01T22:37:52.000+0000 |
Affected Version/s | Release 5.3.0 |
Fix Version/s | Release 6.0.0 |
Components | iOS |
Labels | ios, qe-6.0.0, textstyle |
Reporter | Malcolm Hollingsworth |
Assignee | Hans Knöchel |
Created | 2016-07-01T14:19:29.000+0000 |
Updated | 2016-09-15T09:32:38.000+0000 |
Description
iOS 9 added additional styles (constants) to [Font.textStyle](http://docs.appcelerator.com/platform/latest/#!/api/Font-property-textStyle). These should be added to the Ti SDK to allow complete support of accessibility features of iOS.
Missing constants:
* TEXT_STYLE_TITLE1
* TEXT_STYLE_TITLE2
* TEXT_STYLE_TITLE3
* TEXT_STYLE_CALLOUT
PR: https://github.com/appcelerator/titanium_mobile/pull/8100
iOS 9.x
!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/54399aa2-6403-4287-9f0c-b59d97194c44/00001611.png!iOS 8.x
!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/7b71ca1c-3009-4d84-92ca-a9a8a31ad9b5/00001613.png!To maintain compatibility with pre iOS 9 versions the following constants return as TEXT_STYLE_BODY: * TEXT_STYLE_TITLE1 * TEXT_STYLE_TITLE2 * TEXT_STYLE_TITLE3 * TEXT_STYLE_CALLOUT This can be seen visually in the screenshots shown above.
Demo: https://gist.github.com/hansemannn/2865ee2f8405797666975e8093fa0e3b Screens: https://abload.de/img/simulatorscreenshot01nsuoj.png
Verified as fixed, Text Styles for TITLE1 / TITLE2 / TITLE3 / CALLOUT for iOS devices >= 9 match the expected behaviour. Tested On: iPhone 6 Plus 10.0.1 Device iPhone 5S 9.3.5 Device Mac OSX El Capitan 10.11.6 Ti SDK: 6.0.0.v20160914165725 Appc Studio: 4.8.0.201609101003 Appc NPM: 4.2.8-6 App CLI: 6.0.0-42 Xcode 8.0 Node v4.4.7 *Closing ticket.*