iOS Public Calendars SDK
This is the Swift implementation of the iOS Public Calendar SDK.
Installation
You can install the SDK through CocoaPods.
pod 'SchedJoulesSDK'
Usage
To present the Calendar Store, you first have to initialize it using the API Key we provided you.
Mail us at [email protected] to request you personal API key if you don't have one yet. Until then you can use the test API key 0443a55244bb2b6224fd48e0416f0d9c
Example
If you would like to present our fully-featured Calendar Store, use the CalendarStoreViewController class:
// Presenting the Calendar Store View Controller
let calendarVC = CalendarStoreViewController(apiKey: "YOUR_API_KEY")
present(calendarVC, animated: true, completion: nil)Optionally, if you would only like to use the Calendar Store to present a single page, use the CalendarStoreSinglePageViewController class:
let calendarVC = CalendarStoreSinglePageViewController(apiKey: "YOUR_API_KEY", pageIdentifer: "115673", title: "Featured")
present(calendarVC, animated: true, completion: nil)Legacy
If you want to use the previous version supported that includes Alamofire and Result you can point your pod file to the legacy-0.7.8 branch.
pod 'SchedJoulesApiClient', :git => 'https://github.com/schedjoules/ios-public-calendars-sdk.git', :branch => 'legacy-0.9.4'