relatedcode / progresshud Goto Github PK
View Code? Open in Web Editor NEWProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations. ‼️
Home Page: https://relatedcode.com
License: MIT License
ProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations. ‼️
Home Page: https://relatedcode.com
License: MIT License
In my View controller i am calling multiple api's.
I need to show and hide progressHUD for every api call
pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "ProgressHUD":
In Podfile:
ProgressHUD (~> 13.7.2)
Specs satisfying the ProgressHUD (~> 13.7.2)
dependency were found, but they required a higher minimum deployment target
I use xcode 14.3.1,HUD version is 14.1.0, this code build error, I do not hava ios17
if #available(iOS 17.0, *) {
imageView.addSymbolEffect(.bounce, options: .repeating)
}
Sometimes we need to show activity indicator on screen that presented in separate window. Currently there is no possibility to set the right window for this purpose.
Code takes current first window, or create one now.
Also please consider windowLevel
when creating a new window, it should be between .normal
and .alert
Great work, thanks for making it available! This thing is sweet.
One minor feature request. It would be nice to get a callback after the if hide
timer, since I typically have to take some action on my end. For example, I want to show "Success!" for 1.5 seconds and then dismiss my modal vc. The builtin hiding delay is thoughtful but I can't take advantage of it without a completion handler.
Typical flow:
ProgressHUD.show()
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2) {
ProgressHUD.dismiss()
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.04) {
ProgressHUD.showError()
}
// DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.05) {
// ProgressHUD.showError()
// }
}
if i want show again ,i should set greater than 0.05 TimeInterval ,otherwise is will not show .
Progress views do not appear anymore. Seemingly starting from version 13.8.1
ProgressHUD.show("testing")
does nothing anymore, at least testing on an iOS 17 simulator iPad. Same code worked before and does so with 13.8.0
Could it be related to "Added multi-window support: custom window can be defined now."?
"Full" code:
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
ProgressHUD.show("Testar")
}
ProgressHUD/ProgressHUD+Banner.swift:117: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
I am getting above crash when trying to show a banner with below code:
ProgressHUD.showBanner("Ghosting On", "Last image will now show to position your next shot", delay: 8.0)
Error leads to the following line in ProgressHUD+Banner.swift file
extension ProgressHUD {
private func resizeBanner() {
**let widthBanner = main.frame.width - 32**
now i want show text with systemimage name is "info.circle.fill" .but i don't know how to set.
Hello, when I do
ProgressHUD.colorHUD = .black
Then I need background color will be black. But it is not black
It is light gray, see below
Here is same issue, but you close it without solution.
#141
in ProgressHUD.swift file and private displayHUD method, it is scale animation, can I custom this animation ?
because _UIVisualEffectBackdropView has a color ,and above toolbarHUD .
Existing methods are usually static Image or text,
can you expose a method that allows a custom view to be passed in?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.