{ "id": "175286", "key": "TIMOB-28012", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21051", "description": "", "name": "Release 9.2.0", "archived": false, "released": true, "releaseDate": "2020-09-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-09-08T16:26:34.000+0000", "created": "2020-07-10T19:12:10.000+0000", "epic": { "id": 175154, "key": "TIMOB-27964", "name": "Support iOS 14", "summary": "iOS: Support iOS 14 and Xcode 12", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [ "scrollableView" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-09-08T16:26:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In iOS 14, Apple has introduced new APIs to customize indicator image in UIPageControl.\r\n\r\nhttps://developer.apple.com/documentation/uikit/uipagecontrol/3577679-preferredindicatorimage?language=objc\r\n\r\nhttps://developer.apple.com/documentation/uikit/uipagecontrol/3577680-setindicatorimage?language=objc\r\n\r\nExpose these APIs in titanium sdk .\r\n\r\nNew APIs- \r\nProperty -\r\n\r\n{code:java}\r\nTi.ScrollableView.preferredIndicatorImage = image;\r\n{code}\r\n\r\nFunction - \r\n\r\n{code:java}\r\nTi.ScrollableView.setIndicatorImageForPage(image, pageNo);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS 14: Expose new APIs in Ti.UI.ScrollableView to customize indicator", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1202, "state": "closed", "name": "2020 Sprint 15", "startDate": "2020-07-20T22:16:05.601Z", "endDate": "2020-07-31T22:16:00.000Z", "completeDate": "2020-08-03T20:27:12.585Z", "originBoardId": 114 }, { "id": 1203, "state": "closed", "name": "2020 Sprint 16", "startDate": "2020-08-03T20:57:55.114Z", "endDate": "2020-08-14T20:57:00.000Z", "completeDate": "2020-08-14T15:19:51.647Z", "originBoardId": 114 }, { "id": 1204, "state": "closed", "name": "2020 Sprint 17", "startDate": "2020-08-17T15:48:00.000Z", "endDate": "2020-08-28T15:48:00.000Z", "completeDate": "2020-08-31T15:36:28.040Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "456135", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11825\r\n\r\nTest Case -\r\n1. After launch all page indicator should show 'backward' image.\r\n2. On click of first view, all page indicator should show 'forward ' image.\r\n3. On click of second view, second page indicator should show 'folder' icon image.\r\n4. 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.\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n\textendSafeArea: false,\r\n backgroundColor: 'black'\r\n});\r\n\r\nvar view1 = Ti.UI.createView({ backgroundColor:'#123' });\r\nvar view2 = Ti.UI.createView({ backgroundColor:'#246' });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'#48b' });\r\n\r\nvar image = Ti.UI.iOS.systemImage('backward');\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3],\r\n showPagingControl:true,\r\n preferredIndicatorImage: image\r\n});\r\n\r\nwin.add(scrollableView);\r\nwin.open();\r\n\r\nview1.addEventListener('click', function(e){\r\n\timage = Ti.UI.iOS.systemImage('forward');\r\n\tscrollableView.preferredIndicatorImage = image;\r\n});\r\n\r\nview2.addEventListener('click', function(e){\r\n\timage = Ti.UI.iOS.systemImage('folder.fill');\r\n scrollableView.setIndicatorImageForPage(image, 1);\r\n});\r\n\r\nview3.addEventListener('click', function(e){\r\n\timage = 'image0.png';\r\n scrollableView.setIndicatorImageForPage(image, 2);\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-07-17T00:31:31.000+0000", "updated": "2020-08-20T19:59:40.000+0000" }, { "id": "456599", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build and 9_3_X port.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-26T13:45:52.000+0000", "updated": "2020-08-26T13:45:52.000+0000" }, { "id": "456766", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.2.0.v20200908050955}}, and {{9.3.0.v20200908051946}}.\r\n\r\n*Test and other information can be found at:*\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11825", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-08T16:26:28.000+0000", "updated": "2020-09-08T16:26:28.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }