Latest 1.0.3
Homepage https://github.com/15038777234/SwiftHUD
License MIT
Platforms ios 8.0, requires ARC
Dependencies SnapKit
Authors

HUD Tip Label For Swift

Preview

Install

  1. Down This Demo,Dray SwiftHUD File to your project

  2. use Cocoapods

    pod 'SwiftHUD'

Show

  • Show Default Text
SwiftHUD.show()
  • Show Custom Text
SwiftHUD.show("Show Custom Text")
  • Show Long Lenght Custom Text
SwiftHUD.show("Show Long Lenght Custom Text,Show Long Lenght Custom Text,Show Long Lenght Custom Text,Show Long Lenght Custom Text,Show Long Lenght Custom Text")
  • Show Custom Text In Custom View
SwiftHUD.show("Show Custom Text In Custom View", view: self.view)
  • Show Default Text Loading Style
SwiftHUD.show("Show Default Text Loading Style", view: self.view, style: SwiftHUDStyle.Loading)
  • Show Default Text Error Style
SwiftHUD.show("Show Default Text Error Style", view: self.view, style: SwiftHUDStyle.Error)
  • Show Default Text Success Style
SwiftHUD.show("Show Default Text Success Style", view: self.view, style: SwiftHUDStyle.Success)
  • Show Default Text Info Style
SwiftHUD.show("Show Default Text Info Style", view: self.view, style: SwiftHUDStyle.Info)
  • Show Default Text After Dismiss Complete
SwiftHUD.show("Show Default Text After Complete", view: self.view, style: SwiftHUDStyle.None, after: 2, complete: { (hud) in
                UIAlertView(title: "This is Alert", message: nil, delegate: nil, cancelButtonTitle: "OK").show()

            })

Hide

  • Hide No Text
self.hud?.hide()
  • Hide Show Text After Dismiss Default
 self.hud?.hide("Hide Show Text After Dismiss Default ")
  • Hide Show Text After Dismiss Custom 3 second
self.hud?.hide("Hide Show Text After Dismiss Custom 3 second", after: 3)
  • Hide Show Text After Dismiss Custom 3 second After Complete
self.hud?.hide("Hide Show Text After Dismiss Custom 3 second After Complete", after: 3, complete: { (hud) in
                UIAlertView(title: "This is Alert", message: nil, delegate: nil, cancelButtonTitle: "OK").show()
            })

Latest podspec

{
    "name": "SwiftHUD",
    "version": "1.0.3",
    "summary": "HUD Alert Tip For Swift",
    "description": "You can set a custom text prompt type system bring successful failure Can delay disappear disappear back off",
    "homepage": "https://github.com/15038777234/SwiftHUD",
    "license": "MIT",
    "authors": {
        "15038777234": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/15038777234/SwiftHUD.git",
        "tag": "1.0.3"
    },
    "source_files": "SwiftHUD/SwiftHUD/SwiftHUD/*",
    "resources": "SwiftHUD/SwiftHUD/SwiftHUD/SwiftHUD.bundle",
    "requires_arc": true,
    "dependencies": {
        "SnapKit": []
    }
}

Pin It on Pinterest

Share This