No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Version Carthage compatible License Platform

Every APP has a significant requirement of alerts, notifications, screen messages, toast/HUD and loadings so this time I have tried to make all of these things so simple using single library only.

All you need is to show some creativity to provide any style using this robust library.


  • Can handle all your Alerts, Notification, Screen Messages or loadings with the single library.
  • Easy to understand and implement.
  • Wide range of options for customization as per your requirement.

Example "Success!!", message: "Your email has been sent.", boxApp: appearance, buttonTitle: “Go back!”, buttonAppearance: nil, actionBlock: {

// Action block


Below are the settings applied to above DialogBox

var appearance = BoxAppearance()
// Layout
appearance.layout.backgroundColor = UIColor.init(red: 99.0/255.0, green: 157.0/255.0, blue: 72.0/255.0, alpha: 1.0)
appearance.layout.cornerRadius = 10.0
appearance.layout.width = 300.0
// Title
appearance.title.textColor = UIColor.white
appearance.title.font = UIFont.boldSystemFont(ofSize: 20.0)
// Message
appearance.message.textColor = UIColor.white
appearance.message.font = UIFont.systemFont(ofSize: 17.0)
// Icon
appearance.icon.type = BoxIconType.image = "email"
appearance.icon.margin = "0|30|0|20"
appearance.icon.position = BoxIconPosition.topCenter
appearance.icon.size = CGSize(width: 116, height: 117)
// Animation
appearance.animation = BoxAnimationType.bounce
// Button
appearance.button.height = 40.0
appearance.button.titleFont = UIFont.boldSystemFont(ofSize: 17.0)
appearance.button.bottomPosition.cornerRadius = 20
appearance.button.backgroundColor = UIColor.init(red: 99.0/255.0, green: 157.0/255.0, blue: 72.0/255.0, alpha: 1.0)
appearance.button.titleFont = UIFont.boldSystemFont(ofSize: 17.0)
appearance.button.textColor = UIColor.white
appearance.button.borderColor = UIColor.white
appearance.button.borderWidth = 2.0
appearance.button.containerMargin = "70|20|70|40"


For complete information about this library you can refer blog



DialogBox is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DialogBox'


Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. A minimum version of 0.17 is required.

To install, simply add the following lines to your Cartfile:

github "dhawaldawar/DialogBox" ~> 1.0.0


If you prefer not to use either of the above mentioned dependency managers, you can integrate DialogBox into your project manually by adding the files contained in the Classes folder to your project.


Dhawal Dawar,


DialogBox is available under the MIT license. See the LICENSE file for more info.