Book Image

Swift by Example

By : Giordano Scalzo
Book Image

Swift by Example

By: Giordano Scalzo

Overview of this book

Table of Contents (15 chapters)

Where do we go from here?


Although our app is almost complete, the possibilities for expanding it are endless.

Starting from this source, you can do the following:

  • Make it more robust in handling error situations. Currently, if anything goes wrong, nothing happens on the user's side because the app just logs the error. A good strategy would be to present a warning somewhere and give the chance to retry the operation to the user.

  • The app works well if the user allows the use of GPS, but it will stop working if the user denies it. How about adding a functionality to see the weather for more cities than one, swiping horizontally to see a new city?

  • In the app, the background is chosen using only coordinates, but because the images in that group are tagged with the weather, it would be nice to show an image that matches the weather, and, maybe, with the correct time of the day or night.

  • A straightforward but really useful feature would be to add the pull-to-refresh functionality to request the weather...