How to use MBProgressHUD Progress in Swift?.

How to use MBProgressHUD Progress in Swift
Image Source :

MBProgressHUD is a prevalent and well designed circular activity indicator library for developing iPhone and I-pad Applications. It’s a very flexible and well functioned ProgressView library. Its simple general library could integrate by new developers. It is not that hard enough. It does not need to install Cocoa Pods, you can directly drag and drop class files in your project.

MBProgressHUD requires on iOS 6+ and requires ARC. And depending on the following core frameworks. Foundation framework, UIKit.the framework, CoreGraphics.framework. Install MBProgressHUD to your project using CocoaPods Add pod in profile pod ‘MBProgressHUD‘. And then Install Pod by ‘pod install’. Another way to install MBProgressHUD is Carthage Add MBProgressHUD to yourCartfile .e.g, GitHub”jdg/MBProgressHUD”. And then run Carthage update.

There are multiple trendy alternatives of MBProgressHUD like SVProgressHUD and NVActivityIndicatorView.Follow the given steps to install MBProgressHUD manually. 1)Download Library from

2) Copy the  MBProgressHUD.h and  MBProgressHUD.m file into your swift project. 3)While copying file intelligence will suggest you add bridge header file for sharing objective c classes into a swift, Add it

4) Go to build for the objective-c bridging header, Check there bridging header file is added or not. If it is then come back to the project otherwise drag bridge header file.

5) Add #import”MBProgressHUD.h” into bridge header file.

6)Create button on Storyboard and make Action function for it. 

7) Write below function into button action method.

Run it. Please comment and share the article if you find something useful in it. Thank you. Happy coding.!   

8 thoughts on “How to use MBProgressHUD Progress in Swift?.”

Leave a Comment