SkillAgentSearch skills...

ShrinkPresentation

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

Install / Use

/learn @GuiminChu/ShrinkPresentation
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

Related Skills

View on GitHub
GitHub Stars20
CategoryDevelopment
Updated4y ago
Forks1

Languages

Swift

Security Score

75/100

Audited on Sep 11, 2021

No findings