• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple HUD.

VHUD

Version Swift 5.0 Platforms iOS Xcode 10.2

Simple HUD.

Capture

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)

Capture

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

Capture

And Custom (using closure)

Style

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

Capture

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

Capture

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

Capture

Background

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

Capture

  • 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)

Capture

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

Capture

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!

License

MIT license. See the LICENSE file for more info.

More Repositories

1

MusicPlayerTransition

Custom interactive transition like Apple Music iOS App (iOS 9). written in Swift.
Swift
643
star
2

ARNTransitionAnimator

Custom transition & interactive transition animator for iOS written in Swift.
Swift
335
star
3

ARNZoomImageTransition

Custom image zooming animation transition & interactive transition. written in Swift.
Swift
107
star
4

GooglePlayTransition

Custom transition like Google Play Store Android App. written in Swift.
Swift
102
star
5

SoundCloudTransition

Custom interactive transition like SoundCloud iOS App. written in Swift.
Swift
86
star
6

ViewPagerController

Infinite menu & view paging Controller. written in Swift.
Swift
79
star
7

MusicAppTransition

Custom interactive transition like Apple's Music App (over iOS 10). written in Swift.
Swift
78
star
8

ARNInteractiveTransition

Custom interactive transition like Facobook Paper, Siori, AWA iOS App. written in Swift.
Swift
65
star
9

Cmg

Easy image filtering library of using Core Image.
Swift
59
star
10

Movin

UIViewPropertyAnimator based View Transition Animator
Swift
56
star
11

ARNModalTransition

Custom Animation Transition for Present Modal ViewController. written in Swift.
Swift
25
star
12

ARNPush

Wrap the Apple Push Notification Service (Remote Notification) Code Difference of iOS7 and iOS8.
Objective-C
16
star
13

SwAlert

Wrapper of UIAlertView & UIAlertController. (Swift-lang)
Swift
15
star
14

ARNSpaceStretchFlowLayout

Evernote like UICollectionViewFlowLayout. (Swift lang)
Swift
14
star
15

RealtimeFilterExample

A Sample iOS project for Realtime Capture Effect of OpenCV. (Swift & Objective-c lang)
Swift
14
star
16

AOR

Wrapper of NSAttributedString and Text Kit. written in Swift.
Swift
12
star
17

ARNAlert

Wrapper of UIAlertView & UIAlertController
Objective-C
12
star
18

ContainerInteractiveTransitionExample

Examples of interactive transition of ContainerViewController. (UIPercentDrivenInteractiveTransition)
Swift
8
star
19

ARNSwizzBlocks

Objective-C
8
star
20

ARNCustomURLHelper

iOS Custom URL Scheme Helper.
Objective-C
7
star
21

SwAPNs

Wrap the Apple Push Notification Service (Remote Notification) written in Swift.
Swift
6
star
22

ARNPageContainer-Swift

Horizontal Scroll Paging ViewController Container. (Swift lang)
Swift
6
star
23

ARNHeaderStretchFlowLayout-Swift

Custom UICollectionViewFlowLayout. (Swift lang)
Swift
6
star
24

ARNPageContainer

Horizontal Scroll Paging ViewController Container.
Objective-C
4
star
25

Chain

Method chaining of queued closure (blocks) on GCD (Grand Central Dispatch)
Swift
4
star
26

ARNHeaderStretchFlowLayout

Custom UICollectionViewFlowLayout. (Objective-C)
Objective-C
3
star
27

ARNDeferred

implementation of futures and promises and jQuery.Deferred.
Objective-C
3
star
28

ARNEventEmitter

implementation of Node.js EventEmmiter. and KVO.
Objective-C
3
star
29

ARNPagingTransition

Custom transition for PresentViewController (Swift lang)
Swift
2
star
30

ARNImageCache

iOS Simple Image Data Store Cache
Objective-C
2
star
31

ARNCoreDataAccessor

Compact CoreData Access Class.
Objective-C
2
star
32

UIContainerViewControllerTransitionExample

an Example of UIContainerViewController Transition. (Swift lang)
Swift
2
star
33

Fly

Execution control of chained closures (next, cancel, complete, error, back, retry, restart).
Swift
1
star
34

SwCD

Lightweight CoreData library written in Swift.
Swift
1
star
35

ARNFetchedResultsCollectionView

UICollectionView + NSFetchedResultsController
Objective-C
1
star