Latest 0.1.2
Homepage https://github.com/GuiminChu/ShrinkPresentation
License MIT
Platforms ios 8.0, requires ARC
Authors

ShrinkPresentation makes it easy to shrink the previous view controller when presenting a new one modally.

Screenshot

Screenshot

Requirements

  • iOS 8.0+
  • Xcode 7

Integration

CocoaPods (iOS 8+)

You can use Cocoapods to install ShrinkPresentationby adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
    pod 'ShrinkPresentation', '~> 0.1.2'
end

Manually (iOS 8+)

Clone the repo and add files under Source folder to your project.

Usage

Make your presented view controller as a subclass of ShrinkViewController and present it as usual.

import ShrinkPresentation

class MenuViewController: ShrinkViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
}

License

ShrinkPresentation is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "ShrinkPresentation",
    "version": "0.1.2",
    "summary": "A way to shrink the previous view controller when presenting a new one modally.",
    "homepage": "https://github.com/GuiminChu/ShrinkPresentation",
    "license": "MIT",
    "authors": {
        "GuiminChu": "[email protected]"
    },
    "social_media_url": "http://weibo.com/cookcode",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/GuiminChu/ShrinkPresentation.git",
        "tag": "0.1.2"
    },
    "source_files": "Source",
    "requires_arc": true
}

Pin It on Pinterest

Share This