O'Reilly logo

Swift Essentials by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The RepositoryBrowser project

The client is a Master Detail application called RepositoryBrowser. This sets up a template that can be used on a large device with a split view controller, or a navigator view controller on a small device. In addition, actions to add entries are created.

To build the APIs necessary to display content, several utility classes are needed:

  • The URITemplate class processes URI templates with a set of key/value pairs
  • The Threads class allows functions to be run in the background or in the main thread
  • The NSURLExtensions class provides easy parsing JSON objects from a URL
  • The DictionaryExtensions class provides a means of creating a Swift dictionary from a JSON object
  • The GitHubAPI class provides access to the GitHub remote API ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required