All Projects → contentful → the-example-app.swift

contentful / the-example-app.swift

Licence: other
Example app for Contentful in Swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
HTML
75241 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to the-example-app.swift

ember-data-contentful
Ember Data adapter for contentful.com
Stars: ✭ 33 (-5.71%)
Mutual labels:  contentful
contentful-migrate
🐎 Schema migration tooling for Contentful, with state management
Stars: ✭ 54 (+54.29%)
Mutual labels:  contentful
contentful-sdk-core
Core modules for the Contentful JS SDKs
Stars: ✭ 17 (-51.43%)
Mutual labels:  contentful
bartzalewski.com-v2
My 2nd portfolio website
Stars: ✭ 31 (-11.43%)
Mutual labels:  contentful
ContentfulBundle
Symfony Bundle for the Contentful SDK.
Stars: ✭ 29 (-17.14%)
Mutual labels:  contentful
create-contentful-app
Bootstrap a Contentful App
Stars: ✭ 68 (+94.29%)
Mutual labels:  contentful
react-contentful
📰 A React component library that makes it super simple to compose Contentful content into your sites and applications.
Stars: ✭ 58 (+65.71%)
Mutual labels:  contentful
contentful-wizard
Add walkthrough of contentful blocks to your application
Stars: ✭ 33 (-5.71%)
Mutual labels:  contentful
cf-content-types-generator-app
A Contentful App to generate typescript types based on contentful's content types.
Stars: ✭ 28 (-20%)
Mutual labels:  contentful
Portfolio
A Next.js & Material UI portfolio that stylizes markdown files from the GitHub API and Contentful CMS.
Stars: ✭ 18 (-48.57%)
Mutual labels:  contentful
contentful-text-search
🔎 Powerful, configurable, and extensible text search for your content
Stars: ✭ 16 (-54.29%)
Mutual labels:  contentful
the-example-app.py
Example app for Contentful in Python
Stars: ✭ 17 (-51.43%)
Mutual labels:  contentful
contentful-hugo
A CLI tool that pulls data from Contentful and turns it into markdown files for Hugo and other static site generators. It also includes an express server that can be used for local development and content previews
Stars: ✭ 31 (-11.43%)
Mutual labels:  contentful
gatsby-contentful-portfolio
Portfolio theme for Gatsby
Stars: ✭ 107 (+205.71%)
Mutual labels:  contentful
hooked
Microservice for communicating between Contentful and Shopify
Stars: ✭ 17 (-51.43%)
Mutual labels:  contentful
contentful-reference-matrix-field-app
Contentful App that adds UI for a table-like list of references with other associated data.
Stars: ✭ 28 (-20%)
Mutual labels:  contentful
MarkyMark-Android
Markdown parser for Android
Stars: ✭ 24 (-31.43%)
Mutual labels:  contentful
gatsby-portfolio
danielfr.com/
Stars: ✭ 36 (+2.86%)
Mutual labels:  contentful
contentful-export
Extract Contentful to Hugo
Stars: ✭ 22 (-37.14%)
Mutual labels:  contentful
gatsby-starter
Gatsby Starter for creating portfolio & blog.
Stars: ✭ 55 (+57.14%)
Mutual labels:  contentful

The Swift example app

CircleCI

The Swift example app teaches the very basics of how to work with Contentful:

  • consume content from the Contentful Delivery and Preview APIs
  • model content
  • edit content through the Contentful web app

The app demonstrates how decoupling content from its presentation enables greater flexibility and facilitates shipping higher quality software more quickly.

Screenshot of the example app

You can see a hosted version of The Swift example app on the App Store.

What is Contentful?

Contentful 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.

Requirements

  • Xcode 9
  • Git
  • Contentful CLI (only for write access)
  • Ruby

Without 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.

Common setup

Clone the repo and install the dependencies.

git clone https://github.com/contentful/the-example-app.swift.git
bundle install
bundle exec pod install

Steps for read-only access

Open the-example-app.swift.xcworkspace in Xcode and run the app on a simulator or device.

Steps for read and write access (recommended)

Step 1: Install the Contentful CLI

Step 2: Login to Contentful through the CLI. It will help you to create a free account if you don't have one already.

contentful login

Step 3: Create a new space

contentful space create --name 'My space for the example app'

Step 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

contentful space seed -s '<SPACE_ID>' -t the-example-app

Step 5: Head to the Contentful web app's API section and grab SPACE_ID, DELIVERY_ACCESS_TOKEN, PREVIEW_ACCESS_TOKEN.

Step 6: Open variables.xcconfig and inject your credentials so it looks like this

CONTENTFUL_SPACE_ID=<SPACE_ID>
CONTENTFUL_DELIVERY_TOKEN=<DELIVERY_ACCESS_TOKEN>
CONTENTFUL_PREVIEW_TOKEN=<PREVIEW_ACCESS_TOKEN>

Step 7: Open the-example-app.swift.xcworkspace in Xcode and run the app on a simulator or device. Navigate to settings and enable editorial features and then take a look around the app.

Enabling editorial features will reveal which pieces of content are drafts or pending changes in your Contentful space.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].