[TIMOB-27773] iOS 13: Support search bar tokens
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-04-28T12:57:16.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.1.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Hans Knöchel |
| Assignee | Vijay Singh |
| Created | 2020-02-20T20:30:48.000+0000 |
| Updated | 2020-04-28T12:57:16.000+0000 |
Description
Add support for the iOS 13+ search bar token API.
Attachments
| File | Date | Size |
|---|---|---|
| Simulator Screen Shot - iPhone 11 Pro Max iOS 13.3 - 2020-02-20 at 21.31.02.png | 2020-02-20T20:31:13.000+0000 | 167243 |
PR: https://github.com/appcelerator/titanium_mobile/pull/11489 Example:
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var nav = Ti.UI.createNavigationWindow({ window: win }) var searchBar = Ti.UI.createSearchBar({ top: 0, height: 43, hintText: 'Search stuff …' }); var list = Ti.UI.createListView({ top: 43 }); win.add([searchBar, list]); nav.open(); setTimeout(() => { searchBar.insertTokenAtIndex({ text: 'Restaurant'}, 0); setTimeout(() => { searchBar.removeTokenAtIndex(0); }, 2000); }, 2000);*FR Passed* *Test Environment* Studio Ver: 5.1.4.201909061933 SDK Ver: 9.1.0 (this PR) OS Ver: 10.14.6 Xcode Ver: Xcode 11.3.1 Appc CLI: 7.1.2 Daemon Ver: 1.1.3 Ti CLI Ver: 5.2.2 Alloy Ver: 1.14.4 Node Ver: 10.17.0 Emulator: All iOS 13 simulators. Tested with < iOS 13 simulators, no crashes or anything unexpected.
Closing ticket fix verified in SDK version
9.1.0.v20200423073533. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/11489