Displaying the fridge's status

Once we are able to add stuff to our fridge, we need to create another scene to display the current fridge's status. In this scene, we are going to use UIProgressView because it is more visual than just writing a number on a label.

Go back to the storyboard and add a new view controller to it. Drag five labels, two buttons, and three progress views to the scene as follows.

  1. Place the first label at the top and set its title to Fridge Status.
  2. Place the second label under the first one without a title or, if you prefer, you can just add a dash to locate it easily. This label will be used to report to the user the supplies that are running out of stock.
  3. Under the message label, place one button and set its title to Go to ...

Get Swift 2 Blueprints 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.