A HUD utils for OS X wrote in Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ASHUD-Example
ASHUD.swift
ASTimeUtils.swift
README.md
example.png

README.md

ASHUD

A HUD utils for OS X wrote in Swift (中文)

example image

Installation

Clone and copy ASHUD.swift and ASTimeUtils.swift to your project.

Usage

ASHUD.sharedHUD.showHUD(msg: String ,
        	         		delayTime: NSTimeInterval = 3,
		                 	position: ASHUDPosition = .Center,
		                 	size: ASHUDSize = .Medium,
                 			style: ASHUDStyle = .Dark,
                 			bordered: Bool = false
                 )

example:

// a Large HUD with Dark style in the Center of screen
ASHUD.sharedHUD.showHUD("Center Large Dark",delayTime:3,position:.Center,size:.Large,style:.Dark,bordered:false)
        
// a Medium HUD with Border and Dark style in the Bottom of screen
ASHUD.sharedHUD.showHUD("Bottom Medium Dark Border",delayTime:3,position:.Bottom,size:.Medium,style:.Dark,bordered:true)
        
// a Small HUD with Light style in the Bottom of screen
ASHUD.sharedHUD.showHUD("Top Small Light , Top Small Light , Top Small Light  Top Small Light , Top Small Light , Top Small Light  ",delayTime:3,position:.Bottom,size:.Small,style:.Light,bordered:false)
        
// a Large HUD with Border and Light style in the Center of screen
ASHUD.sharedHUD.showHUD("BIG HUD",delayTime:3,position:.Center,size:.Large,style:.Light,bordered:true)

License

MIT license. See LICENSE for details.