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:
- 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:
- You'll need to change the color to a dynamic color, which changes automatically depending on mode. Set Background to Default, as follows:
- Build and run the app. Now, the restaurantCell background switches color automatically when Dark Mode is on, as can be seen in the following screenshot:
- When you tap a restaurant in the list, note...