[TIMOB-28012] iOS 14: Expose new APIs in Ti.UI.ScrollableView to customize indicator
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-09-08T16:26:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.2.0 |
Components | iOS |
Labels | scrollableView |
Reporter | Vijay Singh |
Assignee | Vijay Singh |
Created | 2020-07-10T19:12:10.000+0000 |
Updated | 2020-09-08T16:26:34.000+0000 |
Description
In iOS 14, Apple has introduced new APIs to customize indicator image in UIPageControl.
https://developer.apple.com/documentation/uikit/uipagecontrol/3577679-preferredindicatorimage?language=objc
https://developer.apple.com/documentation/uikit/uipagecontrol/3577680-setindicatorimage?language=objc
Expose these APIs in titanium sdk .
New APIs-
Property -
Ti.ScrollableView.preferredIndicatorImage = image;
Function -
Ti.ScrollableView.setIndicatorImageForPage(image, pageNo);
PR - https://github.com/appcelerator/titanium_mobile/pull/11825 Test Case - 1. After launch all page indicator should show 'backward' image. 2. On click of first view, all page indicator should show 'forward ' image. 3. On click of second view, second page indicator should show 'folder' icon image. 4. On click of third view, If 'image0.png' exists in resources file third page indicator will show this image otherwise default image that is dot.
FR Passed, waiting on Jenkins build and 9_3_X port.
*Closing ticket*. Fix verified in SDK version
9.2.0.v20200908050955
, and9.3.0.v20200908051946
. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/11825