Skip to content

raphaelmansuy/aws-mobile-appsync-sdk-ios

 
 

Repository files navigation

AWS AppSync SDK for iOS

Release CocoaPods Carthage compatible Build Status Documentation Status Twitter Follow

The AWS AppSync SDK for iOS enables you to access your AWS AppSync backend and perform operations like Queries, Mutations, and Subscriptions. The SDK also includes support for offline operations.

Setup

  • Consuming through cocoapods:
  1. Add the following line to your Podfile:
  pod 'AWSAppSync', '~> 2.6.7'

Example:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'EventsApp' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for EventsApp
  pod 'AWSAppSync', '~> 2.6.7'
end
  1. Run pod install to install the AppSync SDK

  2. Now, open the .xcworkspace file and import the SDK using import AWSAppSync.

  • Codegen

To use the AppSync SDK, you will need to use aws-appsync-codegen which helps generated a strongly typed API for your schema. You can find the instructions to use the codegen here: https://github.com/awslabs/aws-appsync-codegen

Sample

You can find a sample app which uses the AppSync SDK here: https://github.com/aws-samples/aws-mobile-appsync-events-starter-ios

Documentation

You can find a step by step walk through of setting up a backend and accessing it via the iOS client here: https://awslabs.github.io/aws-mobile-appsync-sdk-ios/

License

This library is licensed under the Amazon Software License.

Packages

No packages published

Languages

  • Swift 51.0%
  • Objective-C 48.5%
  • Ruby 0.5%