Skip to content

Commit 934f99d

Browse files
committed
update readme and demo
1 parent 12dbb86 commit 934f99d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ This one has a custom `tintColor` (check the buttons):
3939

4040
<img src="screenshots/07-tintColor.PNG" width="350"/>
4141

42+
On iOS 10, you can use `barColor` and `tintColor`:
43+
44+
<img src="screenshots/08-barColor.PNG" width="350"/>
45+
4246
## 3. Installation
4347
To install the plugin with the Cordova CLI from npm:
4448

@@ -70,7 +74,8 @@ function openUrl(url, readerMode) {
7074
animated: false, // default true, note that 'hide' will reuse this preference (the 'Done' button will always animate though)
7175
transition: 'curl', // (this only works in iOS 9.1/9.2 and lower) unless animated is false you can choose from: curl, flip, fade, slide (default)
7276
enterReaderModeIfAvailable: readerMode, // default false
73-
tintColor: "#ff0000" // default is ios blue
77+
barColor: "#0000ff", // default is white (iOS 10 only)
78+
tintColor: "#ffffff" // default is ios blue
7479
},
7580
// this success handler will be invoked for the lifecycle events 'opened', 'loaded' and 'closed'
7681
function(result) {

demo/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ <h1>Safari VC</h1>
3838
animated: true, // default true, note that 'hide' will reuse this preference (the 'Done' button will always animate though)
3939
transition: 'curl', // unless animated is false you can choose from: curl, flip, fade, slide (default)
4040
enterReaderModeIfAvailable: readerMode, // default false
41-
tintColor: "#ff0000" // default is ios blue
41+
barColor: "#0000ff", // default is white (iOS 10 only)
42+
tintColor: "#ffffff" // default is ios blue
4243
},
4344
function(result) {
4445
if (result.event === 'opened') {

screenshots/08-barColor.PNG

356 KB
Loading

0 commit comments

Comments
 (0)