skywinder / ActionSheetPicker-3.0

Quickly reproduce the dropdown UIPickerView / ActionSheet functionality on iOS.
http://skywinder.github.io/ActionSheetPicker-3.0
BSD 3-Clause "New" or "Revised" License
3.4k stars 740 forks source link

ActionSheetPicker values are not being displayed on iPhone on iOS 13 #427

Closed kirankumarg99 closed 4 years ago

kirankumarg99 commented 4 years ago

ActionSheetPicker values are not being displayed on iPhone on iOS 13. But on scrolling on the picker and select a value(not visible on the screen), the selected item value is updating in the label . Could you please help

kirankumarg99 commented 4 years ago

image

I have attached the image as well

gaozm0509 commented 4 years ago

same problems iOS 12 dark mode causing the problems

vincedev commented 4 years ago

Same problem here, values are in the list, but text color is white, on a white background

xjki commented 4 years ago

You can resolve dark mode issues setting pickerTextAttributes property with your (theme aware) colors.

Example (ObjC):

NSDictionary *rowTextAttributes = @{NSFontAttributeName :font, NSForegroundColorAttributeName : textColor, NSBackgroundColorAttributeName : backgroundColor};
[rowTextAttributes enumerateKeysAndObjectsUsingBlock:^(id  key, id  value, BOOL * _Nonnull stop) {
    picker.pickerTextAttributes[key] = value;
}];
skywinder commented 4 years ago

Hello. please check the latest version. Should be fixed. Feel free to reopen the issue, if you still need help. 👍