Skip to content

houboye/SwiftPopuper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftPopuper

hll-popupsmanager-ios 的swift版本
hll-popupsmanager-ios
hll-popupsmanager-ios技术文档

Install

pod 'SwiftPopuper'

使用

创建自定义View,并且遵循SwiftPopuperProtocol

class CustomPopView: UIView, SwiftPopuperProtocol {
    func supplyCustomPopupView() -> UIView {
        return self
    }
    
    func layout(with superView: UIView) {
        // layout
    }
}

配置弹窗并弹出

func showPopup() {
    var config = PopuperConfig(identifier: "popupName")
    config.sceneStyle = .center
    config.clickOutsideDismiss = true
    config.cornerRadius = 8
    config.popAnimationStyle = .scale
    config.isAloneMode = true
    let customPopView = CustomPopView()
    SwiftPopuper.addPopup(customPopView, options: config)
}

About

hll-popupsmanager-ios 的 swift版本

Resources

License

Stars

Watchers

Forks

Packages

No packages published