Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.55 KB

README.md

File metadata and controls

73 lines (55 loc) · 2.55 KB

🦸 HUDHero

GitHub last commit CI Status Maintainability Test Coverage SPM Compatible Carthage Compatible MIT License

Requirements

  • Xcode 13+

Supported Platforms

  • .iOS(.v15)
  • .macOS(.v12)

Installation

Swift Package Manager

On Xcode go to File > Swift Packages > Add Package Dependency, and enter the URL below: https://github.com/jobearrr/HUDHero.git

Carthage

github "jobearrr/HUDHero"

CocoaPods

👷 Comming up soon!

Usage

  1. Import HUDHero where you wish to use it:
import HUDHero
  1. Use the HUDBuilder to setup and build a HUD to display on a SwiftUI view:
HUDBuilder()
    .animation(.gradientCircle)
    .foregroundColor(.accentColor)
    .isLoading($viewModel.isLoading)
    .build()

Demo App

You can open the workspace in the repository's root folder to browse the demo app.

Displays the loading HUD while fetching the list of books matching the search entry:

hudhero_sim_demo.mp4