An open API service indexing awesome lists of open source software.

https://github.com/contentful/gallery-app-ios

An iOS application example for the gallery space template.
https://github.com/contentful/gallery-app-ios

Last synced: 10 months ago
JSON representation

An iOS application example for the gallery space template.

Awesome Lists containing this project

README

          

# Gallery

[![](https://assets.contentful.com/7clmb9ye18e7/9prTbbpxsWgQ0K6qAEyY6/cd3d2a09a6110ce61d06cea59d4cf62a/download-store.svg)](https://itunes.apple.com/app/id975142754)

This is an iOS application example for the [Contentful][1] gallery space template.

[Contentful][1] is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.

## Usage

- Create a space with the "Gallery" space template on [Contentful][1]
- Clone this repo and setup [CocoaPods][2] for it:

First install (cocoapods-keys)[https://github.com/orta/cocoapods-keys] if is not already installed. (NOTE: If you are not using the default system Ruby, you must make sure that you `chown` your `~/.gems` directory, in order to install gems without the `sudo` keyword.

```
pod plugins install cocoapods-keys
```

```
$ make setup
```

- Use cocoapods-keys to setup your space credentials for it:

```
$ bundle exec pod keys set GallerySpaceId $YOUR_SPACE_ID
$ bundle exec pod keys set GalleryAccessToken $YOUR_ACCESS_TOKEN
```

- Now you're ready to use it!

## Customizing

- You can easily drop the [Contentful][1] related branding by removing 'ContentfulDialogs' and 'ContentfulStyle' from the Podfile. You will need to remove the `addInfoButton()` function from the `UIViewController` extension, as well as replace usages of our fonts and colors. In addition to that, update the bridging header as there are now some header files missing.

- The app has support for the 'contentful-gallery://' custom URL scheme, you should also remove that if you are using the template for your own application.

## License

Copyright (c) 2015 Contentful GmbH. See LICENSE for further details.

[1]: https://www.contentful.com
[2]: http://cocoapods.org