Skip to content

iOS 7 support

Evgenii Neumerzhitckii edited this page Jun 20, 2016 · 11 revisions

Use the following setup method if you need to support iOS 7. The version of the library for iOS 7 is implemented in the ios-7-support branch. This method supports Swift 2.2 version only.

Add source (iOS 7+)

Simply add CosmosDistrib.swift file into your Xcode project.

Setup with Carthage (iOS 8+)

Carthage setup is not available for iOS 7 apps.

Setup with CocoaPods (iOS 8+)

CocoaPods setup method is not available for iOS 7 apps.

Why we use a separate source code for iOS 7?

The reason iOS 7 support is not included in the main setup methods is because the if #available(iOS 8.0, *) statement generates a warning in apps with a target greater than iOS 7. This warning with show up for the majority of the library users who do not support iOS 7.

CosmosView.swift:368:8: warning: unnecessary check for 'iOS'; minimum deployment target ensures guard will always be true.