Latest 2.5
Homepage https://github.com/Insfgg99x/FGHUD
License MIT
Platforms ios 8.0, requires ARC
Dependencies SnapKit
Frameworks Foundation, UIKit
Authors

FGHUD

Version
License
Platform
Language


FGHUD

  • [x] HUD
  • [x] Toast
  • [x] Rotation support

Feathures

FGHUD
FGHUD
FGHUD
FGHUD
FGHUD
FGHUD
FGHUD

FGHUD

See Vedio Here
Vedio

Usage

In UIViewController or subclass, UIView or subclass, you can use:

  • 2.4
    showHUD()
    showHUD(.loading("Loading..."))
    showHUD(.success("Success"))
    showHUD(.error("Operation Error"))
    showHUD(.warning("watch Out!"))
    showHUD(.content("Hi, FGHUD"))
    showHUD(.toast("Hi, FGHUD"))
  • 2.5
    HUDLoading()
    HUD(.loading("Loading..."))
    HUD(.success("Success"))
    HUD(.error("Operation Error"))
    HUD(.warning("watch Out!"))
    HUD(.content("Hi, FGHUD"))
    HUD(.toast("Hi, FGHUD"))

Hide a HUD

  • 2.4

    hHideHUD()
  • 2.5
    HUDHide()

    HUD with type success,error,warning,toast will auto dismiss itself

Install

pod repo update
pod 'FGHUD', '~> 2.5'

and import

  import FGHUD

Style

public enum HUDType {
    //show a hud with template
    case loading(String?)
    //show success
    case success(String?)
    //show error
    case error(String?)
    //show warn
    case warning(String?)
    //show given content
    case content(String?)
    //auto dismiss after given time(FGHUDToastDuration)
    case toast(String?)
}

Required

  • [x] Xocde 9
  • [x] Swift 4.x

Latest podspec

{
    "name": "FGHUD",
    "version": "2.5",
    "summary": "FGHUD is a simple and pretty siwft HUD",
    "homepage": "https://github.com/Insfgg99x/FGHUD",
    "license": "MIT",
    "authors": {
        "CGPointZero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Insfgg99x/FGHUD.git",
        "tag": "2.5"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FGHUD/*.swift",
    "requires_arc": true,
    "dependencies": {
        "SnapKit": []
    }
}

Pin It on Pinterest

Share This