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

Latest commit

 

History

History
14 lines (12 loc) · 696 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 696 Bytes

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)