HUD 2.0.1

HUD 2.0.1

测试已测试
Lang语言 SwiftSwift
许可 MIT
发布上次发布2017年9月
SwiftSwift版本3.0
SPM支持SPM

ChakeryChakery维护。



HUD 2.0.1

  • chakery

HUD

适用于iOS 8及以上版本的简单HUD,支持屏幕旋转。 image

安装

platform :ios, '8.0'
use_frameworks!

pod 'HUD', '~>1.2.0'

使用

// show
HUD.show(.Loading, text: "Loading")
HUD.show(.Success, text: "Success")
HUD.show(.Error, text: "Error")
HUD.show(.Info, text: "Warning")
HUD.show(.None, text: "Text")


// timed dismiss
HUD.show(.Loading, text: "Loading", time: 3) { _ in
    print("Loading completed")
}
HUD.show(.Success, text: "success", time: 3) { _ in
    print("Success completed")
}
HUD.show(.Error, text: "error", time: 3) { _ in
    print("Error completed")
}
HUD.show(.Info, text: "Warning", time: 3) { _ in
    print("Warning completed")
}
HUD.show(.None, text: "Text", time: 3) { _ in
    print("Text completed")
}


// dismiss
HUD.dismiss()

许可

源代码在MIT许可下分发。