Example applications are a great way to explore the headless capabilities of Adobe Experience Manager (AEM). This iOS application demonstrates how to query content using the GraphQL APIs of AEM. The Apollo Client iOS is used to generate the GraphQL queries and map data to Swift objects to power the app. SwiftUI is used to render a simple list and detail view of the content.
How to use
Clone the aem-guides-wknd-graphql repository:
git clone firstname.lastname@example.org:adobe/aem-guides-wknd-graphql.git
Launch Xcode and open the folder ios-swiftui-app
Modify the file Config.xcconfig file and update AEM_HOST to match your target AEM Publish environment
// Target hostname for AEM environment, do not include http:// or https://
AEM_HOST = localhost:4503
// GraphQL Endpoint
AEM_GRAPHQL_ENDPOINT = /content/cq:graphql/wknd/endpoint.json
Build the application using Xcode and deploy the app to iOS simulator
A list of adventures from the WKND reference site should be displayed on the application.