//吊起弹层 (其中一种appear类方法,根据自己需求选择对应的appear方法)
CDPPopupContainer.appear(contentView: customView, fromVC: self) { container in
container.popupHeight = 400 //弹层总高度
container.cornerRadius = 15 //弹层顶部圆角
container.dimmingColor = .red //背景蒙层颜色
container.dimmingAlpha = 0.7 //背景蒙层透明度
container.haveShadow = true //弹层顶部是否带阴影
container.dimmingCanClickDisappear = false //背景蒙层是否可点击退出弹层
container.delegate = self //代理
//仅列出部分可配置参数,其他自定义参数具体查看 CDPPopupContainer.swift
//如果需要用Autolayout布局 或 不想弹层吊起前设置frame,可在此回调里对内容view进行布局
//此时内容view已被添加进容器,父view为container.view
} completion: nil
-
Notifications
You must be signed in to change notification settings - Fork 0
cdpenggod/CDPPopupContainer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A pop-up container that gives your custom view the ability to pop up from the bottom of the screen.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published