File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,18 @@ - (void) show:(CDVInvokedUrlCommand*)command {
5252
5353 NSString *tintColor = options[@" tintColor" ];
5454 if (tintColor != nil ) {
55- vc.view .tintColor = [self colorFromHexString: options[@" tintColor" ]];
55+ #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 // iOS 10.0 supported
56+ vc.preferredControlTintColor = [self colorFromHexString: options[@" tintColor" ]];
57+ #else
58+ vc.view .tintColor = [self colorFromHexString: options[@" tintColor" ]];
59+ #endif
60+ }
61+
62+ NSString *barColor = options[@" barColor" ];
63+ if (barColor != nil ) {
64+ #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 // iOS 10.0 supported
65+ vc.preferredBarTintColor = [self colorFromHexString: options[@" barColor" ]];
66+ #endif
5667 }
5768
5869 CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsDictionary: @{@" event" :@" opened" }];
You can’t perform that action at this time.
0 commit comments