Hi,
I am trying update my application to iOS 14. I would like adopt new compact style.
Is it possible to remove background from the picker?
My picker is standart compact picker showing time and date. I can see rounded background under time and rounded background under date.
When I look to view hierarchy I see:
my UIDatePicker - this view has one subview I can see in debugger and I can access it by datePicker.subviews.first:
UIDatePickerIOSCompactView
Now I can see in view hierarchy the UIDatePickerIOSCompactView has two subviews - first is UIView containing label for time and second is UIView with label with date.
This two UIView has the background colors I want remove, but when I try to list subview for _UIDatePickerIOSCompactView, it returns empty array.
Is there any way how to remove background. Thank you.
I am trying update my application to iOS 14. I would like adopt new compact style.
Is it possible to remove background from the picker?
My picker is standart compact picker showing time and date. I can see rounded background under time and rounded background under date.
When I look to view hierarchy I see:
my UIDatePicker - this view has one subview I can see in debugger and I can access it by datePicker.subviews.first:
UIDatePickerIOSCompactView
Now I can see in view hierarchy the UIDatePickerIOSCompactView has two subviews - first is UIView containing label for time and second is UIView with label with date.
This two UIView has the background colors I want remove, but when I try to list subview for _UIDatePickerIOSCompactView, it returns empty array.
Is there any way how to remove background. Thank you.