Giter Site home page Giter Site logo

rishabhtayal / presenterkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jessesquires/presenterkit

0.0 1.0 0.0 193 KB

Swifty view controller presentation for iOS

Home Page: http://www.jessesquires.com/PresenterKit/

License: MIT License

Swift 96.95% Ruby 1.66% Objective-C 1.39%

presenterkit's Introduction

PresenterKit

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

  • Xcode 7.3+
  • iOS 8.0+
  • Swift 2.2+

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'
github "jessesquires/PresenterKit"

Documentation

Read the docs. Generated with jazzy. Hosted by GitHub Pages. More information on the gh-pages branch.

Getting Started

import PresenterKit

Presenting a view controller modally

let vc = MyViewController()
presentViewController(vc, type: .Modal(.WithNavigation, .FormSheet, .CoverVertical))

Pushing a view controller

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

Presenting as a popover

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

Dismissing a view controller

vc.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.

presenterkit's People

Contributors

jessesquires avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.