cleven1 / CLAlertView

可自定义的alertView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLAlertView

可自定义的alertView

使用方式

AUiAlertView()
            .title(title: "标题")
            .content(content: "啊手机卡连接工商卡金坷垃估计垃圾搜嘎拉萨")
            .leftButton(title: "取消")
            .leftButtonTapClosure {
                print("取消")
            }
            .rightButton(title: "确定")
            .rightButtonTapClosure(onTap: { text in
                print(text ?? "")
            })
            .textFieldPlaceholder(placeholder: "请输入")
//            .textField(text: "啊啊啊")
            .textField(showBottomDivider: true)
//            .textFieldBackground(color: .systemPink)
            .textField(cornerRadius: 10)
            .show()

About

可自定义的alertView

License:MIT License


Languages

Language:Swift 100.0%