DZPopupMessageView 0.3.0

DZPopupMessageView 0.3.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2019
SPMSupports SPM

Maintained by Hu YuHua, darkzero.hu.



  • By
  • darkzero

DZPopupMessageView

CI Status Version License Platform

simple message display queue

How to use

  • Import
import DZPopupMessageView
  • Show message
/// 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
})
  • Paramaters
    • theme

      • DZPopupMessage.Theme.light
      • DZPopupMessage.Theme.dark
    • type

      • DZPopupMessage.MessageType.info
      • DZPopupMessage.MessageType.warning
      • DZPopupMessage.MessageType.error
    • display

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

Can be used like these

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

Requirements

Xcode

Installation

DZPopupMessageView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DZPopupMessageView"

Author

darkzero, [email protected]

License

DZPopupMessageView is available under the MIT license. See the LICENSE file for more info.