Latest 1.0.1
License MIT
Platforms ios 8.0

Carthage compatible

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.


  • [x] Can handle all your Alerts, Notification, Screen Messages or loadings with the single library.
  • [x] Easy to understand and implement.
  • [x] 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, [email protected]


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

Latest podspec

    "name": "DialogBox",
    "version": "1.0.1",
    "summary": "Alerts, Notifications, Screen messages, toast/HUD and Loading views",
    "description": "It helps to create your own style of Alerts, Notifications, Screen messages, toast/HUD and Loading views with plenty options of customisation.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Dhawal Dawar": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "platforms": {
        "ios": "8.0"
    "source_files": "DialogBox/Classes/**/*"

Pin It on Pinterest

Share This