hll-popupsmanager-ios 的swift版本
hll-popupsmanager-ios
hll-popupsmanager-ios技术文档
pod 'SwiftPopuper'
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)
}