VHUD
  • September 25, 2023

Simple HUD.

VHUD is inspired by PKHUD.

Example


Show

import VHUD

func example() {
var content = VHUDContent(.loop(3.0))
content.loadingText = “Loading..”
content.completionText = “Finish!”

VHUD.show(content)
}

Dismiss

// duration, deley(Option), text(Option), completion(Option)
VHUD.dismiss(1.0, 1.0)

Mode


  • Loop
  • Duration
  • PercentComplete

Customization


Shape

  • circle

var content = VHUDContent(.loop(3.0))
content.shape = .circle
VHUD.show(content)

  • round

var content = VHUDContent(.loop(3.0))
content.shape = .round
VHUD.show(content)

And Custom (using closure)

Style

  • light

var content = VHUDContent(.loop(3.0))
content.shape = .circle
content.style = .light
VHUD.show(content)

  • dark

var content = VHUDContent(.loop(3.0))
content.shape = .circle
content.style = .dark
VHUD.show(content)

  • blur

var content = VHUDContent(.loop(3.0))
content.shape = .circle
content.style = .blur(.light)
VHUD.show(content)

Background

  • none

var content = VHUDContent(.loop(3.0))
content.shape = .circle
content.style = .blur(.light)
content.background = .none
VHUD.show(content)

  • color

var content = VHUDContent(.loop(3.0))
content.shape = .circle
content.style = .dark
content.background = .color(#colorLiteral(red: 0.937254902, green: 0.937254902, blue: 0.9568627451, alpha: 0.7))
VHUD.show(content)

  • blur

var content = VHUDContent(.loop(3.0))
content.shape = .circle
content.style = .light
content.background = .blur(.dark)
VHUD.show(content)

Requirements


  • Xcode 10+
OS Swift
v1.1.x iOS 8+ 3.0
v1.2.x iOS 8+ 3.2
v1.3.x iOS 9+ 4.1
v1.4.x iOS 9+ 4.2
v1.5.x iOS 10+ 5.0

Installation


CocoaPods

You can use CocoaPods to install VHUD by adding it to your Podfile:

use_frameworks!
pod ‘VHUD’

To get the full benefits import VHUD wherever you import UIKit

import UIKit
import VHUD

Carthage

You can use Carthage to install VHUD by adding it to your Cartfile:

github “xxxAIRINxxx/VHUD”

To get the full benefits import VHUD wherever you import UIKit

import UIKit
import VHUD

Manually
  1. Download and drop /Sources folder in your project.
  2. Congratulations!

GitHub


View Github

YOU MIGHT ALSO LIKE...
exyte

     

camerakit-ios

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service ...

HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS