Updating the Restaurant List screen to work with Dark Mode

When you build and run your app in the Simulator in Dark Mode, the cell background is white in the Restaurant List screen. Let's fix that by modifying restaurantCell. Take the following steps:

  1. Click Main.storyboard in the Project navigator. Choose restaurantCell in the document outline, and click the Attributes inspector. Note that the Background color is White, so restaurantCell will have a white background, regardless of mode, as can be seen in the following screenshot:
  1. You'll need to change the color to a dynamic color, which changes automatically depending on mode. Set Background ...

Get iOS 13 Programming for Beginners - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.