Swift Package Index


Swift toolkit for the Octav(https://github.com/builderscon/octav) API


  • The latest stable release is 0.5.1. Released 2 years ago.
  • The last commit to master was 2 years ago.

Swift Version Compatibility

  • 0.5.1 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.5.1 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

OctavKit

Carthage compatible

Swift toolkit for the Octav API.

Requirements

  • Swift 4.1 or later
  • iOS 9.0 or later

Installation

Carthage

  • Insert github "to4iki/OctavKit" to your Cartfile.
  • Run carthage bootstrap --platform iOS.

Usage

// Setup your conference id(required)
OctavKit.setup(conferenceId: "YOUR_CONFERENCE_ID")

// Set locale(option)
OctavKit.setLocale(Locale.current)

// Sessions receives an instance of a type that conforms to Request.
OctavKit.sessions { (value, error) in
    switch (value, error) {
    case (let value?, _):
        print("success: \(value)")
    case (_, let error?):
        print("error: \(error)")
    case (.none, .none):
        fatalError("unreachable")
    }
}

// Sponsors receives an instance of a type that conforms to Request.
OctavKit.sponsors { (value, error) in ...

// Conference receives an instance of a type that conforms to Request.
OctavKit.conference { (value, error) in ...