ShrinkPresentation makes it easy to shrink the previous view controller when presenting a new one modally.
- iOS 8.0+
- Xcode 7
You can use Cocoapods to install ShrinkPresentation
by adding it to your Podfile
:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'ShrinkPresentation', '~> 0.1.2'
end
Clone the repo and add files under Source folder to your project.
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.
}
}
ShrinkPresentation is released under the MIT license. See LICENSE for details.