Welcome! This tutorial demonstrates adding the Apollo iOS SDK to an app to communicate with a GraphQL server. It is confirmed to work with the following tools:
- Xcode 13.0
- Swift 5.5
- Apollo iOS SDK 0.49.1
The tutorial assumes that you're using a Mac with Xcode installed. It also assumes some prior experience with iOS development.
This tutorial takes you through building an app to "book a seat" on any of the rockets that have been sent into space by SpaceX. Along the way, you'll build out functionality that uses the following features of the Apollo iOS SDK:
- Schema downloading
- Code generation
- Queries and mutations
- Error handling
- Query watching [🚧 UNDER CONSTRUCTION 🚧]
- File uploads [🚧 UNDER CONSTRUCTION 🚧]
- Subscriptions [🚧 UNDER CONSTRUCTION 🚧]
A pre-built GraphQL server is provided for your app to execute operations against.
Before you start, you should either check out or download the contents of the iOS tutorial repository at https://github.com/apollographql/iOSTutorial. There's a "starter" folder where you'll begin and a "final" folder that shows what the app will wind up looking like when it's complete.