Chapter 10: Recommended change in next version

The ‘Fixing the “dead zone”’ section of chapter 10, recommends setting the background color to white so that the whole row becomes tappable. That causes major problems on devices that are in dark mode because the background color is the same color as the text (also, it’s ugly). I recommend updating the next version to set the background color to the system background color so that it tracks light mode and dark mode. The code is nearly as simple:

.background(Color(UIColor.systemBackground))
1 Like

Hey, @fenianemt

That’s a great idea, and yes, we’ll incorporate that change in the next version. Thanks so much!

— Joey

This topic was automatically closed after 166 days. New replies are no longer allowed.