Get Updates By E-mail 

Article Written By:
Johann Dowa

Malert – Swift Based iOS Alert View Component Featuring Easy Customization


Malert is an open source Swift based alert view component from Vitor Mesquita featuring a wide variety of customizations.

With Malert you can easily display your alert views with images, form fields, and multiple buttons to make unique alerts. You can also customize the animations, colors, fonts, and queue a series of alerts.

BUttons included within the alert view can also be customized.

These snippets from the readme show the customizable attributes of views and buttons created with Malert:

   //Defaults attr malertView
    var malertAppearance = MalertView.appearance()

<pre><code>malertAppearance.backgroundColor    : UIColor                 = .white
malertAppearance.cornerRadius       : CGFloat                 = 6
malertAppearance.textColor          : UIColor                 = .black
malertAppearance.textAlign          : NSTextAlignment         = .left
malertAppearance.buttonsAxis        : UILayoutConstraintAxis  = .vertical
malertAppearance.margin             : CGFloat                 = 0
malertAppearance.titleFont          : UIFont                  = UIFont()
malertAppearance.buttonsMargin      : CGFloat                 = 0
malertAppearance.buttonsSpace       : CGFloat                 = 0
//Defaults attr malertButton
var malertButtonAppearance = MalertButton.appearance()

malertButtonAppearence.tintColor       : UIColor = .black
malertButtonAppearance.backgroundColor : UIColor = .clear
malertButtonAppearance.height          : CGFloat = 33
malertButtonAppearance.separatorColor  : UIColor = UIColor(white: 0.8, alpha: 1)

This animation from the readme shows a custom alert view with two buttons:


You can find Malert on Github here.

A nice custom Swift based alert view component.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.