Gallery
This is an iOS application example for the Contentful gallery space template.
Contentful 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
- Clone this repo and setup CocoaPods 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 related branding by removing 'ContentfulDialogs' and 'ContentfulStyle' from the Podfile. You will need to remove the
addInfoButton()
function from theUIViewController
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.