intelliot / Layer-Parse-iOS-Swift-Example

This is a Swift sample app that integrates Layer and Atlas with Parse.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atlas+Parse Header

Layer + Parse iOS Example (Swift)

This repository contains an example project that demonstrates how to implement an iOS chat application in Swift with messaging services provided by Layer, user interface components from Atlas and a user backend provided by Parse.

Here is the original project in Objective-C from Layer: Layer-Parse-iOS-Example

Atlas+Parse Image

Requirements

This application requires Xcode and the iOS SDK v8.0. Dependencies are managed via CocoaPods to simplify installation.

Setup

  1. Clone the project from Github: $ git clone https://github.com/layerhq/Layer-Parse-iOS-Swift-Example.git
  2. Install the dependencies in the root directory via CocoaPods: $ pod install
  3. Open Layer-Parse-iOS-Swift-Example.xcworkspace in Xcode.
  4. Replace LayerAppIDString , ParseAppIDString , and ParseClientKeyString in AppDelegate.swift with your Layer and Parse credentials.
  5. Add the Layer Parse Module to your Parse Cloud Code to serve as an authentication manager.
  6. (Recommended) If you want test users, import the Resources/Users.json file into your User class on Parse.
  7. Build and run the application on your Simulator to create a new user and begin messaging!

For more in-depth documentation about this project, check our guide.

Atlas+Parse Gif

Highlights

  • Uses ParseUI to authenticate and create new users.
  • Demonstrates how to get identity tokens from Parse Cloud Code using the Layer Parse Cloud Module
  • Uses Atlas, Layer's UI components

Configuration

In order to populate the sample app with content, you must configure the following variable inside AppDelegate.swift:

  • LayerAppIDString: The Layer application identifier for your application.
  • ParseAppIDString: Your Parse App ID.
  • ParseClientKeyString: Your Parse Client Key.

Credits (original project Layer-Parse-iOS-Example)

This project was lovingly crafted in San Francisco. At Layer, we are building the full-stack building block for communications. We value, support, and create works of Open Source engineering excellence.

License

Layer-Parse-iOS-Swift-Example is available under the Apache 2 License. See the LICENSE file for more info.

About

This is a Swift sample app that integrates Layer and Atlas with Parse.

License:Apache License 2.0


Languages

Language:Swift 98.6%Language:Objective-C 0.7%Language:Ruby 0.6%