Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Swift Essentials
  • Toc
  • feedback
Swift Essentials

Swift Essentials

By : Alex Blewitt, Bandlem Limited
4.8 (4)
close
Swift Essentials

Swift Essentials

4.8 (4)
By: Alex Blewitt, Bandlem Limited

Overview of this book

Whether you are a seasoned Objective-C developer or new to the Xcode platform, Swift Essentials will provide you with all you need to know to get started with the language. Prior experience with iOS development is not necessary, but will be helpful to get the most out of the book.
Table of Contents (10 chapters)
close
9
Index

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

URI templates

URI templates are defined in RFC 6570 at https://tools.ietf.org/html/rfc6570. They can be used to replace sequences of text surrounded by {} in a URI. Although GitHub's API uses optional values {?...}, the example client presented in...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete