Post

Replies

Boosts

Views

Activity

Reply to UIDatePicker iOS 14 compact remove default background
It's not that it doesn't change color when the background color is white. There is a low-opacity overlay that will be above any color you put. When you choose red or any other color, the overlay is still there, and the color appears darker, but you do not notice it as much. When you set the background color to white, the overlay is very noticeable. The only way to fix this as of right now is to make the background color of the overlay view .clear. if let bgView = datePicker.subviews.first?.subviews.first?.subviews.first { 		bgView.backgroundColor = .clear } But you will have to run this every time the user changes their appearance.
Dec ’20