DZPopupMessageView 0.3.0

DZPopupMessageView 0.3.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2019年10月
SPM支持 SPM

Hu YuHuadarkzero.hu 维护。



  • 作者
  • darkzero

DZPopupMessageView

CI Status Version License Platform

简单消息显示队列

如何使用

  • 导入
import DZPopupMessageView
  • 显示消息
/// paramters
/// - message text: String
/// - theme: DZPopupMessage.Theme(enum)
///     can be nil, default is .light
/// - type: DZPopupMessage.MessageType(enum)
///     can be nil, default is .info
/// - display: DZPopupMessage.DisplayType(enum)
///     can be nil, default is .bubbleTop
DZPopupMessage.show({msg text}, theme: {theme}, type: {type}, display: {display}, callback: {
    // do some thing
})
  • 参数
    • 主题

      • DZPopupMessage.Theme.light
      • DZPopupMessage.Theme.dark
    • 类型

      • DZPopupMessage.MessageType.info
      • DZPopupMessage.MessageType.warning
      • DZPopupMessage.MessageType.error
    • 显示方式

      • DZPopupMessage.DisplayType.rise
      • DZPopupMessage.DisplayType.drop
      • DZPopupMessage.DisplayType.bubbleTop
      • DZPopupMessage.DisplayType.bubbleBottom

可以像这样使用

DZPopupMessage.show("Message body");
DZPopupMessage.show({msg text}, theme: {theme}, type: {type}, display: {display});
DZPopupMessage.show({msg text}, theme: {theme}, type: {type});
...

需求

Xcode

安装

DZPopupMessageView 可通过 CocoaPods 获取。要安装它,请简单地添加以下行到您的 Podfile

pod "DZPopupMessageView"

作者

darkzero, [email protected]

许可

DZPopupMessageView 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。