POViewController

1.0.0

Pio's Awesome Customizable ViewController
kyungpyoda/POViewController

What's New

1.0.0

2022-03-01T03:54:36Z

First Release 🚀

What's Changed

New Contributors

Full Changelog: https://github.com/kyungpyoda/POViewController/commits/1.0.0

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.

Usage

Style Code Image
Pop Up
class PopUpViewController: POViewController {
    ...
    init() {
        super.init(
            direction: .center,
            viewSize: .init(
                width: .absolute(200),
                height: .fit
            ),
            isSwipeEnabled: false
        )
    }
    ...
}

Bottom Sheet
class BottomSheetViewController: POViewController {
    ...
    init() {
        super.init(
            direction: .bottom,
            viewSize: .init(
                width: .full,
                height: .absolute(300)
            ),
            isSwipeEnabled: true
        )
    }
    ...
}

Side Menu
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.

Requirements

  • iOS 13.0+
  • POViewController is written in Swift 5.5

Installation

Swift Package Manager (SPM)

To install POViewController using Swift Package Manager(SPM), you can follow the tutorial published by Apple.

  1. In Xcode, select "File" → "Add Packages"
  2. Enter 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. See LICENSE for details.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 08:06:37 GMT-0900 (Hawaii-Aleutian Daylight Time)