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
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
POViewController
Pio’s Awesome Customizable ViewController
POViewControlleris 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.xcodeprojin the Example folder.Requirements
POViewControlleris written in Swift 5.5Installation
Swift Package Manager (SPM)
To install
POViewControllerusing Swift Package Manager(SPM), you can follow the tutorial published by Apple.https://github.com/kyungpyoda/POViewController.gitto add package dependency.CocoaPods
pod 'POViewController'Contributing
Contributions of any kind are welcome! 🤗
License
POViewControlleris available under the MIT License. SeeLICENSEfor details.