KRProgressHUD alternatives and similar libraries
Based on the "UI" category.
Alternatively, view KRProgressHUD alternatives based on common mentions on social networks and blogs.
-
Charts
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. -
Animated Tab Bar
:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion -
Material
A UI/UX framework for creating beautiful applications. -
folding-cell
:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion -
NVActivityIndicatorView
A collection of awesome loading animations -
LTMorphingLabel
[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift. -
JTAppleCalendar
The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable -
FSPagerView
FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders. -
SwiftMessages
A very flexible message bar for UIKit and SwiftUI. -
AMScrollingNavbar
Scrollable UINavigationBar that follows the scrolling of a UIScrollView -
SwiftEntryKit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps. -
SwipeCellKit
Swipeable UITableViewCell/UICollectionViewCell based on the stock Mail.app, implemented in Swift. -
TextFieldEffects
Custom UITextFields effects inspired by Codrops, built using Swift -
Macaw
Powerful and easy-to-use vector graphics Swift library with SVG support -
Pagemenu
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram) -
PermissionScope
A Periscope-inspired way to ask for iOS permissions. -
SCLAlertView
Beautiful animated Alert View. Written in Swift -
SPPermission
Universal API for request permission and get its statuses. -
Scrollable-GraphView
An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift. -
Alerts Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date... -
SideMenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less. -
Material Components for iOS
[In maintenance mode] Modular and customizable Material Design UI components for iOS -
ESTabBarController
:octocat: ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie! -
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS -
Instructions
Create walkthroughs and guided tours (coach marks) in a simple way, with Swift. -
ActiveLabel
UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift -
SlideMenuControllerSwift
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift. -
PopupDialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style. -
Siren
Notify users when a new version of your app is available and prompt them to upgrade. -
PKHUD
A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8. -
TLYShyNavBar
Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars! -
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift -
KMNavigationBarTransition
A drop-in universal library helps you to manage the navigation bar styles and makes transition animations smooth between different navigation bar styles while pushing or popping a view controller for all orientations. And you don't need to write any line of code for it, it all happens automatically. -
StarWars.iOS
This component implements transition animation to crumble view-controller into tiny pieces. -
Whisper
:mega: Whisper is a component that will make the task of display messages and in-app notifications simple. It has three different views inside -
DGElasticPullToRefresh
Elastic pull to refresh for iOS developed in Swift -
CircleMenu
:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion -
RazzleDazzle
A simple keyframe-based animation framework for iOS, written in Swift. Perfect for scrolling app intros. -
PaperOnboarding
:octocat: PaperOnboarding is a material design UI slider. Swift UI library by @Ramotion -
XLActionController
Fully customizable and extensible action sheet controller written in Swift -
DOFavoriteButton
Cute Animated Button written in Swift.
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of KRProgressHUD or a related project?
README
[日本語](./README_Ja.md)
KRProgressHUD
is a beautiful and easy-to-use progress HUD for your iOS written by Swift.
KRActivityIndicatorView is used for loading view.
Features
- Round indicator
- Indicator color can be customized
Requirements
- iOS 9.0+
- Xcode 12.0+
- Swift 5.3+
DEMO
To run the example project, clone the repo, and open KRProgressHUDDemo.xcodeproj
from the DEMO directory.
or appetize.io
Installation
KRProgressHUD is available through CocoaPods and Carthage. To install it, simply add the following line to your Podfile or Cartfile:
# CocoaPods
pod "KRProgressHUD"
# Carthage
github "Krimpedance/KRProgressHUD"
Usage
(see sample Xcode project in /Demo)
Caution :
Only use it if you absolutely need to perform a task before taking the user forward.
If you want to use it with other cases (ex. pull to refresh), I suggest using KRActivityIndicatorView.
KRProgressHUD
is created as a singleton.
At first, import KRProgressHUD
in your swift file.
Show simple HUD :
KRProgressHUD.show()
DispatchQueue.main.asyncAfter(deadline: .now()+1) {
KRProgressHUD.dismiss()
}
Showing the HUD
class func show(withMessage message:String? = nil, completion: CompleteHandler? = nil)
// Example
KRProgressHUD.show()
KRProgressHUD.show(withMessage: "Loading...")
KRProgressHUD.show(withMessage: "Loading...") {
print("Complete handler")
}
Show on ViewController
If you want to show HUD on a view controller, set at showOn()
.
(This is applied only once.)
KRProgressHUD.showOn(viewController).show()
Show a confirmation glyph before getting dismissed a little bit later. (The display time is 1 sec in default. You can change the timing.)
class func showSuccess()
class func showInfo()
class func showWarning()
class func showError()
class func showImage() // This can set custom image. (Max size is 50x50)
Show the HUD (only message)
public class func showMessage(_ message: String)
// Example
KRProgressHUD.showMessage("Completed! \n Let's start!")
Update the HUD's message
The HUD can update message.
class func update(message: String)
// Example
KRProgressHUD.update(message: "20%")
Dismissing the HUD
The HUD can be dismissed using:
class func dismiss(_ completion: CompleteHandler? = nil)
Customization
KRProgressHUD.appearance()
can set default styles.
class KRProgressHUDAppearance {
/// Default style.
public var style = KRProgressHUDStyle.white
/// Default mask type.
public var maskType = KRProgressHUDMaskType.black
/// Default KRActivityIndicatorView colors
public var activityIndicatorColors = [UIColor]([.black, .lightGray])
/// Default message label font.
public var font = UIFont.systemFont(ofSize: 13)
/// Default HUD center offset of y axis.
public var viewOffset = CGFloat(0.0)
/// Default duration to show HUD.
public var duration = Double(1.0)
}
When you'd like to make styles reflected only in specific situation, use following methods.
@discardableResult public class func set(style: KRProgressHUDStyle) -> KRProgressHUD.Type
@discardableResult public class func set(maskType: KRProgressHUDMaskType) -> KRProgressHUD.Type
@discardableResult public class func set(activityIndicatorViewColors colors: [UIColor]) -> KRProgressHUD.Type
@discardableResult public class func set(font: UIFont) -> KRProgressHUD.Type
@discardableResult public class func set(viewOffset offset: CGFloat) -> KRProgressHUD.Type
@discardableResult public class func set(duration: Double) -> KRProgressHUD.Type
// Example
KRProgressHUD
.set(style: .custom(background: .blue, text: .white, icon: nil))
.set(maskType: .white)
.show()
These set()
setting can be reset by
@discardableResult public class func resetStyles() -> KRProgressHUD.Type
Contributing to this project
I'm seeking bug reports and feature requests.
Release Note
3.4.7 :
- Support for iOS 11 and below
3.4.6 :
- Update for Xcode 12
License
KRProgressHUD is available under the MIT license.
See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the KRProgressHUD README section above
are relevant to that project's source code only.