Latest 3.0.0
Homepage https://github.com/jessesquires/PresenterKit
License MIT
Platforms ios 8.0, requires ARC

Build Status Version Status license MIT codecov Platform Carthage compatible

Swifty view controller presentation for iOS

About

Swifty wrappers around view controller presentation, dismissal, and UIPresentationController. See my blog post and talk at Realm.

Requirements

  • Swift 3.0
  • Xcode 8
  • iOS 8.0+

Installation

CocoaPods (recommended)

use_frameworks!

# For latest release in cocoapods
pod 'PresenterKit'

# Feeling adventurous? Get the latest on develop
pod 'PresenterKit', :git => 'https://github.com/jessesquires/PresenterKit.git', :branch => 'develop'

Carthage

github "jessesquires/PresenterKit"

Documentation

Read the docs. Generated with jazzy. Hosted by GitHub Pages.

Generate

$ ./build_docs.sh

Preview

$ open index.html -a Safari

Getting Started

import PresenterKit

Presenting a view controller modally

let vc = MyViewController()
present(vc, type: .modal(.withNavigation, .FormSheet, .CoverVertical))

Pushing a view controller

let vc = MyViewController()
present(vc, type: .Push)

Presenting as a popover

let vc = MyViewController()
let config = PopoverConfig(source: .BarButtonItem(item), delegate: self)
present(vc, type: .Popover(config))

Dismissing a view controller

dismiss()

Unit tests

There’s a suite of unit tests for PresenterKit. To run them, open PresenterKit.xcodeproj, select the PresenterKit scheme, then ⌘-u.

Contribute

Please follow these contribution guidelines.

Credits

Created and maintained by @jesse_squires.

License

PresenterKit is released under an MIT License. See LICENSE for details.

Copyright © 2016-present Jesse Squires.

Please provide attribution, it is greatly appreciated.

Latest podspec

{
    "name": "PresenterKit",
    "version": "3.0.0",
    "license": "MIT",
    "summary": "Swifty view controller presentation for iOS",
    "homepage": "https://github.com/jessesquires/PresenterKit",
    "documentation_url": "http://jessesquires.com/PresenterKit",
    "social_media_url": "https://twitter.com/jesse_squires",
    "authors": "Jesse Squires",
    "source": {
        "git": "https://github.com/jessesquires/PresenterKit.git",
        "tag": "3.0.0"
    },
    "source_files": "Source/*.swift",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This