/SimpleHUD

SimpleHUD

Primary LanguageSwiftMIT LicenseMIT

SimpleHUD

SimpleHUD

📲 Installation

CocoaPods

SimpleHUD is available on CocoaPods:

pod 'SimpleHUD'

Swift Package Manager

  • File > Swift Packages > Add Package Dependency
  • Add https://github.com/knottx/SimpleHUD.git
  • Select "Up to Next Major" with "1.7.2"

📝 How

Code Implementation

import SimpleHUD
var simpleHUD: SimpleHUD = SimpleHUD()

Show HUD

self.simpleHUD.show(at: self.view)

Dismiss HUD

self.simpleHUD.dismiss()

Dissmiss all stacked HUD

self.simpleHUD.dissmissAll()

Change Simple HUD Type and Color

self.simpleHUD.show(at: self.view, type: <SimpleHUDType>, color: <UIColor>)

SimpleHUDType

.activityIndicator
.circleStroke
.circleRotateChase
.circleSpinFade
.threeDots
.fiveBars
.progress(value: CGFloat)
.icon(_ image: UIImage?)

Simple Toast

var simpleToast: SimpleToast = SimpleToast()

Show Toast

self.simpleToast.toast(at: self.view, message: <String?>, image: <UIImage?>)

Dismiss Toast

self.simpleToast.dismiss()

📋 Requirements

  • iOS 10.0+
  • Xcode 11+
  • Swift 5.1+