GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - relatedcode/ProgressHUD: ProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations.

BranchesTags
Open more actions menu

Latest commit

 

History

89 Commits
89 Commits

Folders and files

NameName
Last commit message
Last commit date
ProgressHUD
ProgressHUD
 
 
SwiftUI
SwiftUI
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
Package-SwiftUI.swift
Package-SwiftUI.swift
 
 
Package-UIKit.swift
Package-UIKit.swift
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
VERSION.txt
VERSION.txt
 
 

Repository files navigation

WHAT'S NEW

For detailed changes, please refer to the Change log.

OVERVIEW

ProgressHUD is a convenient and intuitive HUD tool designed specifically for iOS. It enables the seamless presentation of concise alerts or notifications to your app users in a simple and non-disruptive way.

Note: 15.x is SwiftUI. For UIKit, use 14.x releases.

INSTALLATION

Swift Package Manager

Swift Package Manager is a tool for managing Swift code distribution.

To add ProgressHUD as a dependency to your project, follow these steps:

  1. Open your Swift project in Xcode.
  2. Navigate to File -> Add Package Dependencies....
  3. Paste https://github.com/relatedcode/ProgressHUD.git into the search bar.
  4. Choose the version you want to use and click Add Package.

Manually

If you prefer not to use the dependency manager above, you can integrate ProgressHUD into your project manually. Simply copy all the *.swift files from the SwiftUI/Sources folder into your Xcode project.

QUICK START

SwiftUI Setup

Add the .progressHUD() modifier to your root view:

import SwiftUI

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .progressHUD()
        }
    }
}

Usage Examples

ProgressHUD.banner("Banner title", "Banner message to display.")
ProgressHUD.banner("Banner title", "Message to display.", delay: 2.0)
ProgressHUD.bannerHide()
ProgressHUD.animate("Some text...")
ProgressHUD.animate("Some text...", interaction: false)
ProgressHUD.animate("Please wait...", .ballVerticalBounce)
ProgressHUD.succeed()
ProgressHUD.succeed("Some text...", delay: 1.5)
ProgressHUD.failed()
ProgressHUD.failed("Some text...")
ProgressHUD.progress(0.15)
ProgressHUD.progress("Loading...", 0.42)
ProgressHUD.symbol(name: "box.truck")
ProgressHUD.symbol("Some text...", name: "sun.max")
ProgressHUD.success("Success message")
ProgressHUD.error("Error message")
ProgressHUD.added("Item added")
ProgressHUD.animate("Loading...", symbol: "star.fill")
ProgressHUD.dismiss()
ProgressHUD.remove()

REQUIREMENTS

  • iOS 17.0+
  • Xcode 15.0+

CUSTOMIZATION

You can customize attributes like color, font, image, animation type, size, and more by using these methods:

ProgressHUD.animationType = .circleStrokeSpin
ProgressHUD.colorHUD = .gray.opacity(0.1)
ProgressHUD.colorBackground = .gray.opacity(0.3)
ProgressHUD.colorAnimation = .blue
ProgressHUD.colorProgress = .blue
ProgressHUD.colorStatus = .primary
ProgressHUD.mediaSize = 100
ProgressHUD.marginSize = 50
ProgressHUD.fontStatus = .system(size: 24, weight: .bold)
ProgressHUD.imageSuccess = Image("success")
ProgressHUD.imageError = Image("error")

Banner customization:

ProgressHUD.colorBanner = .blue.opacity(0.1)
ProgressHUD.colorBannerTitle = .primary
ProgressHUD.colorBannerMessage = .secondary
ProgressHUD.fontBannerTitle = .system(size: 16, weight: .semibold)
ProgressHUD.fontBannerMessage = .system(size: 14)

A comprehensive list of the predefined enums:

public enum AnimationType: CaseIterable {
	case none
	case activityIndicator
	case ballVerticalBounce
	case barSweepToggle
	case circleArcDotSpin
	case circleBarSpinFade
	case circleDotSpinFade
	case circlePulseMultiple
	case circlePulseSingle
	case circleRippleMultiple
	case circleRippleSingle
	case circleRotateChase
	case circleStrokeSpin
	case dualDotSidestep
	case horizontalBarScaling
	case horizontalDotScaling
	case pacmanProgress
	case quintupleDotDance
	case semiRingRotation
	case sfSymbolBounce
	case squareCircuitSnake
	case triangleDotShift
}
public enum LiveIcon {
	case succeed
	case failed
	case added
}

LICENSE

MIT License

Copyright (c) 2026 Related Code

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

ProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations.

iwantmy.ai/retro

Topics

activity-indicatorapplehudios-swiftprogressprogress-barprogress-circleprogress-hudprogress-indicatorprogress-indicatorsprogress-ringprogress-trackerprogress-viewprogressbarprogresshudswift-libraryswift5swiftui

Resources

Readme
MIT license
Activity

Stars

3.0k stars

Watchers

49 watching

Forks

507 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.