Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.
/ SwiftUI-HUD Public archive

This package contains a HUD based on Connapptivity's SwiftUI-Indicators purely written in SwiftUI.

License

Notifications You must be signed in to change notification settings

marlokessler/SwiftUI-HUD

Repository files navigation

HUD

This package contains a HUD based on Connapptivity's SwiftUI-Indicators purely written in SwiftUI.

Getting Started

Swift Package Manager

Install this package by adding a Package Dependency in Xcode under Swift Packages> Add Package Dependency. Choose SwiftUI-HUD from Connapptivity and select the version you want to add and the target and click Finish.

CocoaPods

Alternatively, you can add pod 'CAHUD' to your podfile and run pod install.

Now you can use it after adding the import CAHUD statement at the top of xour code file.

Usage

View()
.hud(HUDType, show: Bool, with: HUDConfiguration)

Customize a HUD

You can customize a hud by passing an instance of HUDConfiguration to the hud modifier in which you declare your custom values. Note that not all values you declare in your HUDConfiguration object are used with ever HUDType. Only the values which can be changed at a specific hud type are used.

About

This package contains a HUD based on Connapptivity's SwiftUI-Indicators purely written in SwiftUI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published