diff --git a/MSColorPicker/MSColorSelectionView.m b/MSColorPicker/MSColorSelectionView.m index f3d4362..25564aa 100644 --- a/MSColorPicker/MSColorSelectionView.m +++ b/MSColorPicker/MSColorSelectionView.m @@ -115,7 +115,12 @@ - (void)ms_init { self.accessibilityLabel = @"color_selection_view"; - self.backgroundColor = [UIColor whiteColor]; + if (@available(iOS 13.0, *)) { + self.backgroundColor = [UIColor systemBackgroundColor]; + } else { + self.backgroundColor = [UIColor whiteColor]; + } + self.rgbColorView = [[MSRGBView alloc] init]; self.hsbColorView = [[MSHSBView alloc] init]; [self addColorView:self.rgbColorView];