3

I have custom UITableView where I set the background color to white. This works for dark and bright mode. But on dark mode the disclosure indicators are hard to see.

I tried to fix this with cell.tint color but it doe not work. How can I fix it?

Dark Mode:

enter image description here

Bright Mode:

enter image description here

netshark1000
  • 7,245
  • 9
  • 59
  • 116

1 Answers1

6

If you want the table view to always be light, regardless of the system setting, you should consider to set overrideUserInterfaceStyle = .light in your table view or view controller to force the system to always use light style colors.

Frank Rupprecht
  • 9,191
  • 31
  • 56
  • This addresses the visibility of the disclosure indicator by forcing the view to use light colours. The problem is that the table view will show in light mode when all else is dark? – Jon Trauntvein Jul 08 '20 at 21:54
  • @JonTrauntvein Correct. But OP said they set the background color to white, so I assumed that it should be light in both cases. – Frank Rupprecht Jul 09 '20 at 05:37
  • Schiegel I'm having a similar problem but am trying to make the app dark-mode conformant. The problem that I am. seeing now is that, when I put a disclosure indicator on a cell, the component renders this as a more or less white square with no visible chevron but it looks fine in light mode. I can only assume that this is a bug in the component or the OS and the only workaround that I have seen so far is your suggestion to disable dark mode for the view. – Jon Trauntvein Jul 09 '20 at 14:06
  • 1
    This answer is possible only in iOS 13 and later – Pradeep Reddy Kypa Oct 04 '20 at 01:22