iOS

Start from Swift Template

10min

Start your iOS project from an App Template - Swift

Introduction

In this section you learn how to get started with an Xcode template and get ready to use Back4App in 3 easy steps.

Prerequisites

To complete this quickstart, you need:

  • Xcode.
  • An app created at Back4App.

1 - Get the template

Download the template at Back4App’s GitHub repository, and unzip files in your project folder.

You can do that using the following command line:

$ curl -LOk https://github.com/templates-back4app/ios-template-todo-list/archive/refs/heads/main.zip && unzip swiftProjectBranch.zip

2 - Open the project template

  1. Open Xcode.
  2. Click on File->Open.
Document image


3. Navigate to the project folder and double click on Todo_List_Back4app.xcworkspace.

Document image


4. Wait for Xcode to open the project.

3 - Setup app’s credentials

Update your App Delegate’s Parse Client Configuration values to set up the app’s credentials. Parse iOS SDK uses these settings to connect to the Back4App servers.

  1. Open your App Delegate file: .../Todo_List_Back4app/AppDelegate.swift
Document image


2. Go to your App Dashboard at Back4App website.

3. Navigate to app's settings: Click on Features > Core Settingsblock > Server.

4. Return to your AppDelegate.swift file and paste your applicationId and clientKey.

See more at our New Parse App guide.

4 - Test your connection

  1. Build your app in a device or simulator (+R).
Document image


2. Wait until the Hello World! screen appears.

3. Login at Back4App Website.

4. Find your app and click on Dashboard.

5. Click on Core.

6. Go to Browser.

If everything works properly, you should find a class named Installation as follows:

Document image


Next Steps

At this point, you have learned how to get started with iOS apps.

Learn more by walking around our iOS Tutorials or check Parse open source documentation for iOS SDK.