设置

xcode -> 文件 -> 添加包 -> https://github.com/BurakAltunoluk/Cici.git -> Cici -> 添加包

import Cici //add
class Viewcontroller: UIViewController {
    let cici = Cici() //add 
    
 override func viewDidLoad() {
     super.viewDidLoad()
     cici.view = view //add
     } 
 }

准备就绪,可以使用了...

示例

    func alertMenu() {
        
        cici.horizontalMargins = 30.0
        cici.showAlert(messageText: "HelloWorld", buttonTitle: "Ok")
        
    }

特性

        cici.backroundImage.image = UIImage(named: "imageName")   //to change backround image
        cici.buttonBackroundColor = . red                         //to change button backround color
        cici.mesaggeTextColor = .white                            //to change mesagge text color
        cici.backgroundColor = .orange                            //to change backround color
        cici.buttonWidth = 120.0                                  //button width
        cici.heightExtra = -40.0                                  //to change message box height bigger or smaller
        cici.horizontalMargins = 30.0                             //to change message box left/right blank
        cici.showAlert(messageText: "HelloWorld", buttonTitle: "Ok") //Show Alert box