[TIMOB-24780] iOS 11: Expose new API's to Ti.SafariDialog
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-10-10T22:25:49.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.3.0 |
| Components | iOS |
| Labels | ios11, safaridialog |
| Reporter | Hans Knöchel |
| Assignee | Hans Knöchel |
| Created | 2017-06-06T11:00:11.000+0000 |
| Updated | 2017-10-10T22:26:47.000+0000 |
Description
iOS 11 offers new configuration methods for the Ti.SafariDialog module:
* barCollapsingEnabled: Decide whether or not you want to collapse the nav-bar during scrolling
* dismissButtonStyle: Different dismiss-styles for the nav-button (done, close, cancel).
* Expose
AuthenticationSession API
PR: https://github.com/appcelerator-modules/ti.safaridialog/pull/12 Test-Case:
var dialog = require('ti.safaridialog'); if (dialog.isSupported()) { dialog.open({ url: 'http://appcelerator.com', title: 'Titanium rocks!', barCollapsingEnabled: false, dismissButtonStyle: dialog.DISMISS_BUTTON_STYLE_CLOSE }); }Verified in module Ti.SafariDialog 2.0.0