Skip to content

kwkhaw/Layer-Parse-iOS-Swift-Example

Repository files navigation

Build Status Atlas+Parse Header

Note: I no longer actively working on this project. If you encounter any problem, please open an issue and hopefully the community will help out. If you are interested to maintain this project, kindly contact me. :-)

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 7 and the iOS SDK v9.0. Dependencies are managed via CocoaPods to simplify installation.

Please use the Cocoapods version 0.39 or above.

Setup

  1. Clone the project from Github: $ git clone https://github.com/kwkhaw/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!
  8. Please follow this guide to configure the push notification on iOS Dev Center.

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages