Da 0.0.4

Da 0.0.4

测试已测试
语言语言 SwiftSwift
许可协议 MIT
发布日期最新发布2017年3月
SwiftSwift版本3.0
SPM支持SPM

LeoLeo维护。



Da 0.0.4

Da

🌟愚蠢的弹性alert视图显示在导航栏上方,类似于QQ的。Da是DaXia的一部分。

In me the tiger sniffs the rose.

心有猛虎,细嗅蔷薇。

欢迎访问我的博客:https://LeoDev.me

内容

需求

  • iOS 8.0+
  • Xcode 8.0+
  • Swift 3.0+

安装

手动

如果您不愿意使用上述依赖管理器,可以将Da手动集成到项目中。

使用

  • 快速入门

    import Da
    
    func showAlertQuickly() {
    
        Da.showAlert(title: "温馨提示",
                     message: "您的账号已在其他设备登录,请您注意账号安全。",
                     cancelButtonTitle: "退出",
                     otherButtonTitles: nil)
    }
  • 详细

    func showAlertDetailedly() {
    
        Da.hairColor = UIColor.orange
        let da = Da(title: "温馨提示",
                    message: "您的账号已在其他设备登录,请您注意账号安全。",
                    cancelButtonTitle: "退出",
                    otherButtonTitles: "重新登录", "修改密码")
        da.destructiveButtonIndexSet = Set(arrayLiteral: 0)
        da.destructiveButtonColor = UIColor.orange
        da.clickedHandle = { da, buttonIndex in
            print("clickedHandle: \(buttonIndex), \(da.cancelButtonIndex)")
        }
        da.willPresentHanlder = { da in
            print("willPresentHanlder, \(da.cancelButtonIndex)")
        }
        da.didPresentHanlder = { da in
            print("didPresentHanlder, \(da.cancelButtonIndex)")
        }
        da.willDismissHandler = { da, buttonIndex in
            print("willDismissHandler: \(buttonIndex), \(da.cancelButtonIndex)")
        }
        da.didDismissHandler = { da, buttonIndex in
            print("didDismissHandler: \(buttonIndex), \(da.cancelButtonIndex)")
        }
        da.show()
    }
    
    // And more see Da.swift...
  • 资源

预览

变更日志

V 0.0.4

  • 修复了bug。

V 0.0.3

  • 公开了一些属性。

    public static var titleFont: UIFont   = UIFont.systemFont(ofSize: 20.0)
    public static var messageFont: UIFont = UIFont.systemFont(ofSize: 16.0)
    public static var buttonFont: UIFont  = UIFont.systemFont(ofSize: 18.0)

V 0.0.2

  • 改进。

V 0.0.1

  • Hello World!

支持

  • 如果您有任何问题,请提交问题

  • 邮箱:echo bGVvZGF4aWFAZ21haWwuY29tCg== | base64 -D

  • 博客:https://LeoDev.me

  • 捐赠

    • PayPal

      Donate

    • 支付宝或微信支付

      Donate with Alipay or Wechat Pay

    请注意:捐赠不意味着任何类型的服务合同。

许可协议

Da遵循MIT许可证