Swiftpack.co - knottx/SimpleHUD as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by knottx.
knottx/SimpleHUD 1.7.1
SimpleHUD
⭐️ 1
🕓 3 days ago
iOS
.package(url: "https://github.com/knottx/SimpleHUD.git", from: "1.7.1")

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.0"

📝 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+

GitHub

link
Stars: 1
Last commit: 3 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.7.1
3 days ago

1.7.1

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics