Skip to content

A customizable, easy-to-integrate, and cross-platform animated HUD built with SwiftUI

License

Notifications You must be signed in to change notification settings

jobearrr/HUDHero

Repository files navigation

HUD Hero

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

Requirements

  • Xcode 13+

Supported Platforms

  • .iOS(.v15)
  • .macOS(.v12)
  • .tvOS(.v13)
  • .watchOS(.v6)
  • .visionOS(.v1)

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

About

A customizable, easy-to-integrate, and cross-platform animated HUD built with SwiftUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages