Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
/ PopupViewController Public archive

A view controller that pops up any views like UIAlertController.

Notifications You must be signed in to change notification settings

hikui/PopupViewController

Repository files navigation

A view controller to pop up any views like UIAlertController.

Usage:

let contentView = UINib.init(nibName: "TestContentView", bundle: nil)
            .instantiate(withOwner: nil, options: nil).first as! TestContentView
contentView.label.text = "long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text "
let popupController = PopupViewController(contentView: contentView)
popupController.beginPosition = .belowBottom
popupController.endPosition = .bottom
popupController.marginBottom = 40
self.present(popupController, animated: true, completion: nil)

About

A view controller that pops up any views like UIAlertController.

Resources

Stars

Watchers

Forks

Packages

No packages published