Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23584] Add support for iOS 9 Text Style additions

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-07-01T22:37:52.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsios, qe-6.0.0, textstyle
ReporterMalcolm Hollingsworth
AssigneeHans Knöchel
Created2016-07-01T14:19:29.000+0000
Updated2016-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

Comments

  1. Stephen Feather 2016-07-01

    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!
  2. Malcolm Hollingsworth 2016-07-01

    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.
  3. Hans Knöchel 2016-07-01

    Demo: https://gist.github.com/hansemannn/2865ee2f8405797666975e8093fa0e3b Screens: https://abload.de/img/simulatorscreenshot01nsuoj.png
  4. Harry Bryant 2016-09-15

    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.*

JSON Source