Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kirankumarg99 opened this issue Oct 23, 2019 · 5 comments
Closed
Labels

Comments

@kirankumarg99
Copy link

kirankumarg99 commented Oct 23, 2019

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
Copy link
Author

image

I have attached the image as well

@gaozm0509
Copy link

same problems
iOS 12 dark mode causing the problems

@vincedev
Copy link

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

@xjki
Copy link
Collaborator

xjki commented Dec 10, 2019

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants