Skip to content

Swift 1.2 setup

Evgenii Neumerzhitckii edited this page Nov 9, 2015 · 6 revisions

Cosmos is written in Swift 2.0 and requires Xcode 7. Here is how to setup the previous version that is compatible with Xcode 6 projects.

Note that in Xcode 6 it may not be possible to change the settings of the cosmos view in the Storyboard, please do it from code instead.

Add source (iOS 7+)

Simply add CosmosDistrib.swift file into your Xcode project.

Setup with Carthage (iOS 8+)

Alternatively, add github "marketplacer/Cosmos" "swift-1" to your Cartfile and run carthage update.

Setup with CocoaPods (iOS 8+)

If you are using CocoaPods add this text to your Podfile and run pod install.

use_frameworks!
pod 'Cosmos', :git => 'https://github.com/marketplacer/Cosmos.git', :branch => 'swift-1'
Clone this wiki locally