可定制 显示时间,位置,大小,色彩,边框 的HUD

example image

https://github.com/antscript/ASHUD

如何使用

1.克隆或复制ASHUD.swift/ASTimeUtils.swift两个swift文件到工程中。

2.示例:

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

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