High Performance Display Overlay in iOS
A-J-Simple-HUD is an drop-in solution for displaying overlay information in iOS
AJHUD
and AJHUDNotice
into your projectimport UIKit
class ViewController: UIViewController {
@IBAction func onTextButtonTapped(_ sender: UIButton) {
AJHUD.showText("We ā¤ļø Swift !")
}
@IBAction func onSuccessButtonTapped(_ sender: UIButton) {
AJHUD.showNoticeWithText(.success, text: "saved successfully š", autoClear: true, autoClearTime: 2)
}
@IBAction func onInfoButtonTapped(_ sender: UIButton) {
AJHUD.showNoticeWithText(.info, text: "attention š¤", autoClear: true, autoClearTime: 2)
}
@IBAction func onErrorButtonTapped(_ sender: UIButton) {
AJHUD.showNoticeWithText(.error, text: "something is wrong šÆ", autoClear: true, autoClearTime: 2)
}
}
āāā AJHUD.swift
āāā AJHUDNotice.swift
āāā ViewController.swift
Class | Responsiblity |
---|---|
AJHUD | display overlay information on UIWindow and auto dismiss |
AJHUDNoticeType | enum type for the supported overlay image icon type |
AJHUDConfigure | overlay related UI element configuration |
AJHUDNoticeImage | GPU-based dynamically generate image icon for different overlay icon type |
A-J-Simple-HUD is owned and maintained by the Alex Jiang. Thanks iTMan.design for providing computational resources.
A-J-Simple-HUD is released under the MIT license.