Silver Challenge: Dark Mode

Whenever the ConversionViewController is viewed, update its background color based on the time of day. In the evening, the background should be a dark color. Otherwise, the background should be a light color. You will need to override viewWillAppear(_:) to accomplish this. (If that is not enough excitement in your life, you can change the background color each time the view controller is viewed.)

Get iOS Programming: The Big Nerd Ranch Guide, 6th 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.