/Parse-Swift

[EXPERIMENTAL] Parse pure Swift SDK

Primary LanguageSwiftMIT LicenseMIT

Parse Platform

ParseSwift

An experimental pure Swift library that gives you access to the powerful Parse Server backend from your Swift applications.

Follow on Twitter License Backers on Open Collective Sponsors on Open Collective

Swift 5.0 Platforms Build status Code coverage Dependencies Join the conversation


For more information about the Parse Platform and its features, see the public documentation.

Installation

As there are currently no releases of the ParseSwift SDK you will need to specify either a branch or a specific commit with your chosen package manager. The main branch may be unstable and there may be breaking changes.

You can use The Swift Package Manager to install ParseSwift by adding the following description to your Package.swift file:

// swift-tools-version:5.1
import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/parse-community/Parse-Swift.git", .branch("main")"),
    ]
)

Then run swift build.

Add the following line to your Podfile:

pod 'ParseSwift', :git => 'https://github.com/parse-community/Parse-Swift', :branch => 'main'

Run pod install, and you should now have the latest version from the main branch. Please be aware that as this SDK is still in development there may be issues with main.

Add the following line to your Cartfile:

github "parse-community/Parse-Swift" "main"

Run carthage update, and you should now have the latest version of ParseSwift SDK in your Carthage folder.

iOS Usage Guide

After installing ParseSwift, to use it first import ParseSwift in your AppDelegate.swift and then add the following code in your application:didFinishLaunchingWithOptions: method:

ParseSwift.initialize(applicationId: "xxxxxxxxxx", clientKey: "xxxxxxxxxx", serverURL: URL(string: "https://example.com")!)

Please chechout the Swift Playground for more usage information.