Changing text color of iOS picker
See original GitHub issueI need to change the color of this text.
Edit: eventually this issue evolved to report that textColor
prop does not work when display="spinner"
which is a bug. textColor will not work for other display
modes
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:20 (4 by maintainers)
Top Results From Across the Web
How do I change the text color of UIPickerView with multiple ...
Below code will change the font colour of the picker view of all 3 components. However, it crash when I try to spin...
Read more >UIPickerView text color not changi… | Apple Developer Forums
What do you mean by "change information"? You can easily change the text or color by calling UIPickerView.reloadComponent(_:) or UIPickerView.
Read more >SwiftUI Tutorial - Color Picker and Text Editor - YouTube
iosapp #swift #xcodeIn this video, we're going to learn how to use a color picker and a text editor with SwiftUI. We're also...
Read more >How to customize the UIDatePicker and change the text color ...
iOS : How to customize the UIDatePicker and change the text color and the background color ? · Comments.
Read more >Change the color of text - Pixelmator Pro User Guide
You can change the color of text to any color you want using the Pixelmator Pro color picker or the macOS Colors window....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What you’re saying makes sense to me @pedromarta. That explains some behavior around textColor I’ve seen the past few days but have been too lazy to identify. (See attached gif. The color starts as blue, but isn’t used on initial app launch. I change to red, which then works. I change back to blue again, and now blue works).
My app is built with
textColor="blue"
for theDateTimePicker
, but that textColor does not take effect when the app is launched. Only when thetextColor
is changed does that prop seem to matter. Then the DateTimePicker re-renders and actually uses the value.@fix777 Its not crashing, just the color property is not working. I have ios 14.3