Skip to content

chkkassd/SSFNoticeHUD

Repository files navigation

SSFNoticeHUD

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.3
  • Swift 5.0

Installation

SSFNoticeHUD is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SSFNoticeHUD'

Usage

展示图

///标准模式成功Toast(图片+文案)
public func SSFNoticeSuccess(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD 
///标准模式失败Toast(图片+文案)
public func SSFNoticeError(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD 
///标准模式提示信息Toast(图片+文案)
public func SSFNoticeInfo(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD
///只有文案Toast
public func SSFNoticeForOnlyText(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD
///标准模式加载Toast(菊花+文案)
public func SSFNoticeForStandardLoading(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD 
///简易模式加载Toast(菊花)
public func SSFNoticeForOnlyLoading(autoClear: Bool, delay: Double) -> SSFNoticeHUD 
///状态栏成功Toast(文案+绿背景)
public func SSFNoticeTopSuccess(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD 
///状态栏失败Toast(文案+红背景)
public func SSFNoticeTopError(text: String, autoClear: Bool, delay: Double) -> SSFNoticeHUD 
///标准模式自定义Toast(图片+文案)
public func SSFNoticeForStandard(customImage: UIImage, text: String, autoClear: Bool, delay: Double) ->SSFNoticeHUD 

//if you don't use auto clear, you can clear all hud manualy by this methdos
public func SSFClearAll()

you can call all above methods just by 'self'

self.SSFNoticeSuccess(text: "Success", autoClear: true, delay: 2)
self.SSFNoticeTopSuccess(text: "Success", autoClear: true, delay: 2)

Author

Peter Shi, peter1990lynn@gmail.com

License

SSFNoticeHUD is available under the MIT license. See the LICENSE file for more info.

About

A simple notice hud written by swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published