Latest 0.3.0
Homepage https://github.com/darkzero/DZPopupMessageView
License MIT
Platforms ios 9.3
Authors

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});
...

Blog post(中文使用说明)

DZPopupMessageView更新

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.

Latest podspec

{
    "name": "DZPopupMessageView",
    "version": "0.3.0",
    "summary": "DZPopupMessageView.",
    "description": "## Popup Message View with queuen### How to usen  n* **Import**n  n```Swiftnimport DZPopupMessageViewn```n  n* **Show message**n  n```Swiftn/// paramtersn/// - message text: Stringn/// - theme: DZPopupMessage.Theme(enum)n///     can be nil, default is .lightn/// - type: DZPopupMessage.MessageType(enum)n///     can be nil, default is .infon/// - display: DZPopupMessage.DisplayType(enum)n///     can be nil, default is .bubbleTopnDZPopupMessage.show({msg text}, theme: {theme}, type: {type}, display: {display}, callback: {n    // do some thingn    })n```n                      n* **Paramaters**n    * themen        - DZPopupMessage.Theme.lightn        - DZPopupMessage.Theme.darkn                      n    * typen        - DZPopupMessage.MessageType.infon        - DZPopupMessage.MessageType.warningn        - DZPopupMessage.MessageType.errorn                      n    * displayn        - DZPopupMessage.DisplayType.risen        - DZPopupMessage.DisplayType.dropn        - DZPopupMessage.DisplayType.bubbleTopn        - DZPopupMessage.DisplayType.bubbleBottomn                      n#### Can be used like thesen                      n```SwiftnDZPopupMessage.show("Message body");nDZPopupMessage.show({msg text}, theme: {theme}, type: {type}, display: {display});nDZPopupMessage.show({msg text}, theme: {theme}, type: {type});n...n```",
    "homepage": "https://github.com/darkzero/DZPopupMessageView",
    "license": "MIT",
    "authors": {
        "darkzero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/darkzero/DZPopupMessageView.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "9.3"
    },
    "source_files": "DZPopupMessageView/Classes/**/*",
    "resources": [
        "DZPopupMessageView/Assets/*.xcassets"
    ]
}

Pin It on Pinterest

Share This