{"id":15143833,"url":"https://github.com/contentful/the-example-app.graphql.swift","last_synced_at":"2025-09-29T12:31:32.720Z","repository":{"id":33838291,"uuid":"148344785","full_name":"contentful/the-example-app.graphql.swift","owner":"contentful","description":"The Example App and Contentful GraphQL Endpoint, using Apollo iOS, Contentful/ImageOptions","archived":true,"fork":false,"pushed_at":"2023-01-18T12:42:10.000Z","size":45308,"stargazers_count":12,"open_issues_count":4,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-27T10:04:36.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contentful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-11T16:12:11.000Z","updated_at":"2023-03-31T08:58:52.000Z","dependencies_parsed_at":"2023-02-10T15:01:17.765Z","dependency_job_id":null,"html_url":"https://github.com/contentful/the-example-app.graphql.swift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contentful","download_url":"https://codeload.github.com/contentful/the-example-app.graphql.swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234619479,"owners_count":18861456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-26T10:04:40.977Z","updated_at":"2025-09-29T12:31:23.879Z","avatar_url":"https://github.com/contentful.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Note**: This repo is no longer officially maintained as of Jan, 2023.\n\u003e Feel free to use it, fork it and patch it for your own needs.\n\n## The Swift example app\n\n[![CircleCI](https://circleci.com/gh/contentful/the-example-app.graphql.swift.svg?style=svg)](https://circleci.com/gh/contentful/the-example-app.graphql.swift)\n\nThe Swift GraphQL example app is variant of [The Swift example app](https://github.com/contentful/the-example-app.swift) which uses the [Apollo GraphQL client for iOS](https://github.com/apollographql/apollo-ios) to interface with the new Contentful GraphQL endpoint. This app teaches the very basics of how to work with Contentful:\n\n- consume content from the Contentful GraphQL API\n- model content\n- edit content through the Contentful web app\n\nThe app demonstrates how decoupling content from its presentation enables greater flexibility and facilitates shipping higher quality software more quickly.\n\n\u003cimg src=\"https://images.contentful.com/fmjk18k0dyyi/6JbDu02xHimOua0wsyOywg/626164f9c6e3c59383f340d278e0ec06/Screen_Shot_2018-01-29_at_15.24.53.png\" alt=\"Screenshot of the example app\"/\u003e\n\nYou can see a hosted version of `The Swift example app` on the \u003ca href=\"https://itunes.apple.com/us/app/the-example-app-swift/id1333721890\" target=\"_blank\"\u003eApp Store\u003c/a\u003e.\n\n## What is Contentful?\n\n[Contentful](https://www.contentful.com) provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.\n\n## Requirements\n\n* Xcode 10\n* Git\n* Contentful CLI (only for write access)\n* Ruby\n\nWithout any changes, this app is connected to a Contentful space with read-only access. To experience the full end-to-end Contentful experience, you need to connect the app to a Contentful space with read _and_ write access. This enables you to see how content editing in the Contentful web app works and how content changes propagate to this app.\n\n## Common setup\n\nClone the repo and install the dependencies.\n\n```bash\ngit clone https://github.com/contentful/the-example-app.graphql.swift.git\n```\n\n```bash\nbundle install\nbundle exec pod install\n```\n\n## Steps for read-only access\n\nOpen `the-example-app.swift.xcworkspace` in Xcode and run the app on a simulator or device.\n\n## Steps for read and write access (recommended)\n\nStep 1: Install the [Contentful CLI](https://www.npmjs.com/package/contentful-cli)\n\nStep 2: Login to Contentful through the CLI. It will help you to create a [free account](https://www.contentful.com/sign-up/) if you don't have one already.\n```\ncontentful login\n```\nStep 3: Create a new space\n```\ncontentful space create --name 'My space for the example app'\n```\nStep 4: Seed the new space with the content model. Replace the `SPACE_ID` with the id returned from the create command executed in step 3\n```\ncontentful space seed -s '\u003cSPACE_ID\u003e' -t the-example-app\n```\nStep 5: Head to the Contentful web app's API section and grab `SPACE_ID`, `DELIVERY_ACCESS_TOKEN`, `PREVIEW_ACCESS_TOKEN`.\n\nStep 6: Open `variables.xcconfig` and inject your credentials so it looks like this\n\n```\nCONTENTFUL_SPACE_ID=\u003cSPACE_ID\u003e\nCONTENTFUL_DELIVERY_TOKEN=\u003cDELIVERY_ACCESS_TOKEN\u003e\nCONTENTFUL_PREVIEW_TOKEN=\u003cPREVIEW_ACCESS_TOKEN\u003e\n```\n\nStep 7: Open `the-example-app.swift.xcworkspace` in Xcode and run the app on a simulator or device.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful%2Fthe-example-app.graphql.swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontentful%2Fthe-example-app.graphql.swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful%2Fthe-example-app.graphql.swift/lists"}