Merge pull request #1 from kyungpyoda/develop Implement POViewController
Merge pull request #1 from kyungpyoda/develop
Implement POViewController
Pio’s Awesome Customizable ViewController
POViewController is a is a subclass of UIViewController, and it’s easy to customize view size and presentation position.
POViewController
UIViewController
class PopUpViewController: POViewController { ... init() { super.init( direction: .center, viewSize: .init( width: .absolute(200), height: .fit ), isSwipeEnabled: false ) } ... }
class BottomSheetViewController: POViewController { ... init() { super.init( direction: .bottom, viewSize: .init( width: .full, height: .absolute(300) ), isSwipeEnabled: true ) } ... }
class SideMenuViewController: POViewController { ... init() { super.init( direction: .right, viewSize: .init( width: .fit, height: .full ), isSwipeEnabled: true ) } ... }
Please refer to the example project.
To run the example project, clone this repository, open Example.xcodeproj in the Example folder.
Example.xcodeproj
To install POViewController using Swift Package Manager(SPM), you can follow the tutorial published by Apple.
https://github.com/kyungpyoda/POViewController.git
pod 'POViewController'
Contributions of any kind are welcome! 🤗
POViewController is available under the MIT License. See LICENSE for details.
LICENSE
POViewController
Pio’s Awesome Customizable ViewController
POViewController
is a is a subclass ofUIViewController
, and it’s easy to customize view size and presentation position.Usage
Please refer to the example project.
To run the example project, clone this repository, open
Example.xcodeproj
in the Example folder.Requirements
POViewController
is written in Swift 5.5Installation
Swift Package Manager (SPM)
To install
POViewController
using Swift Package Manager(SPM), you can follow the tutorial published by Apple.https://github.com/kyungpyoda/POViewController.git
to add package dependency.CocoaPods
pod 'POViewController'
Contributing
Contributions of any kind are welcome! 🤗
License
POViewController
is available under the MIT License. SeeLICENSE
for details.