diff --git a/README.md b/README.md index ed42fb2..7f05aff 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ In order to use the `close` event on Android it is recommended to have a short d * `animated` (Boolean, iOS only) * `entersReaderIfAvailable` (Boolean, iOS only) * `barCollapsingEnabled` (Boolean) - * `title` (String, iOS only) * `tintColor` (String, iOS only)    * `dismissButtonStyle` (`DISMISS_BUTTON_STYLE_*`, iOS only) * `showTitle` (Boolean, Android only) diff --git a/apidoc/WebDialog.yml b/apidoc/WebDialog.yml index 9bd93bc..e0efe9d 100644 --- a/apidoc/WebDialog.yml +++ b/apidoc/WebDialog.yml @@ -42,7 +42,7 @@ description: | ``` javascript if (dialog.isSupported()) { dialog.open({ - url: 'https://appcelerator.com' + url: 'https://titaniumsdk.com' }); } ``` @@ -92,8 +92,7 @@ methods: var dialog = require('ti.webdialog'); if (dialog.isSupported()) { dialog.open({ - url: 'https://appcelerator.com', - title: 'Hello World', + url: 'https://titaniumsdk.com', tintColor: 'red' }); } @@ -170,12 +169,6 @@ properties: type: Boolean platforms: [iphone, ipad] - - name: title - summary: The URL to be opened. - optional: true - type: String - platforms: [iphone, ipad] - - name: tintColor summary: The tint-color of the web dialog. optional: true diff --git a/ios/Classes/TiWebdialogModule.m b/ios/Classes/TiWebdialogModule.m index 3cf4787..b969bfd 100644 --- a/ios/Classes/TiWebdialogModule.m +++ b/ios/Classes/TiWebdialogModule.m @@ -146,10 +146,6 @@ - (void)open:(id)args SFSafariViewController *safari = [self safariController:_url withEntersReaderIfAvailable:entersReaderIfAvailable andBarCollapsingEnabled:barCollapsingEnabled]; - if ([args objectForKey:@"title"]) { - [safari setTitle:[TiUtils stringValue:@"title" properties:args]]; - } - if ([args objectForKey:@"tintColor"]) { TiColor *newColor = [TiUtils colorValue:@"tintColor" properties:args]; [safari setPreferredControlTintColor:[newColor _color]];