Skip to content

Commit

Permalink
Merge pull request #54 from newage99/master
Browse files Browse the repository at this point in the history
Wheel selector on iOS dark theme visual bug fixed.
  • Loading branch information
jasonmamy committed Oct 22, 2019
2 parents 8b0ea3f + cf51c73 commit 355f2e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ios/SelectorCordovaPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ - (void)hideSelector:(CDVInvokedUrlCommand *)command {
- (UIView *)createPickerView {
// Initialize container view
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, [self getSafeBottomPadding], self.viewSize.width, 260 + [self getSafeBottomPadding])];
if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1) {
if (@available(iOS 13, *)) {
[view setBackgroundColor:[UIColor systemBackgroundColor]];
}
else if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1) {
[view setBackgroundColor:[UIColor colorWithRed:0.97 green:0.97 blue:0.97 alpha:1.0]];
}

Expand Down

0 comments on commit 355f2e6

Please sign in to comment.