/ShrinkPresentation

A way to shrink the previous view controller when presenting a new one modally.

Primary LanguageSwiftMIT LicenseMIT

ShrinkPresentation

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.