question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing text color of iOS picker

See original GitHub issue

Screen Shot 2020-10-15 at 12 03 16 PM

I 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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
williamhaleycommented, Oct 18, 2020

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 the DateTimePicker, but that textColor does not take effect when the app is launched. Only when the textColor is changed does that prop seem to matter. Then the DateTimePicker re-renders and actually uses the value.

textColor

5reactions
alesdvorakczcommented, Feb 22, 2021

@fix777 Its not crashing, just the color property is not working. I have ios 14.3

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found