Latest 0.1.0
Homepage https://github.com/piaojin/PJPresentation
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

Swift, AutoLayout, iOS

Installation

CocoaPods is a dependency manager for Objective-C / Swift, which automates and simplifies the process of using 3rd-party libraries like AFNetworking, PJPresentation in your projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 0.39.0+ is required to build PJPresentation.

Podfile

To integrate PJPresentation into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'

target 'TargetName' do
pod 'PJPresentation'
end

Then, run the following command:

$ pod install

How to use

let contentView = UIView()
contentView.backgroundColor = .orange
PJPresentationControllerManager.presentView(contentView: contentView, presentationViewControllerHeight: 200.0)

image

Use the PJPresentationOptions struct to configure the desired effect, such as popup or dismiss direction, size, custom animation effects, etc.

var options = PJPresentationOptions()
options.dismissDirection = .topToBottom
options.presentationPosition = .center
options.presentationDirection = .topToBottom
PJPresentationControllerManager.presentView(contentView: contentView, presentationViewControllerHeight: 200, presentationOptions: options)

image

image

image

How to find

pod search PJPresentation

Q&A

Contact me ([email protected]) if you have any questions or suggestions.

License

PJPresentation is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "PJPresentation",
    "version": "0.1.0",
    "summary": "A pop view manager, easy to pop your custom view(just like UIAlertController).",
    "description": "A pop view manager, easy to pop your custom view, easy to use(just like UIAlertController).",
    "homepage": "https://github.com/piaojin/PJPresentation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "piaojin": "[email protected]"
    },
    "social_media_url": "https://juejin.im/user/5a3e7dbff265da4322416851",
    "swift_version": "4.0",
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/piaojin/PJPresentation.git",
        "tag": "0.1.0"
    },
    "source_files": [
        "PJPresentation",
        "PJPresentation/**/*.{swift}"
    ],
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This