GitHub - awslabs/aws-mobile-appsync-sdk-ios: iOS SDK for AWS AppSync.
source link: https://github.com/awslabs/aws-mobile-appsync-sdk-ios
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
AWS AppSync SDK for iOS
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. This SDK is based off of the Apollo project found here.
Setup
- Consuming through cocoapods:
- 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
-
Run
pod install
to install the AppSync SDK -
Now, open the
.xcworkspace
file and import the SDK usingimport 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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK