Skip to content
Simple and easy alerts to use instead of default AlertController. Separate Xib is provided to customize as pr your need. Callbacks are easily handled by using Closures.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
KCustomAlert added code May 22, 2019
LICENSE Added License May 22, 2019
README.md Update README.md May 22, 2019
_config.yml Set theme jekyll-theme-architect May 22, 2019

README.md

KCustomAlert

GitHub pages URl here: https://krishnads.github.io/KCustomAlert/.

Let’s not use the default AlertController in our upcoming iOS Apps because it doesn’t feel awesome. To make the alert look better and customised, I just created Common Repo which can be used very easily for all kind of Alerts. So, let’s use this from now on.

Simple and easy alerts to use instead of default AlertController.

Separate Xib is provided to customize as pr your need.

Callbacks are easily handled by using Closures.

Demo Video

kcustomalert

Screenshots

Simulator Screen Shot - iPhone X - 2019-05-22 at 16 32 07

Simulator Screen Shot - iPhone X - 2019-05-22 at 16 30 06

Simulator Screen Shot - iPhone X - 2019-05-22 at 16 29 13

Simulator Screen Shot - iPhone X - 2019-05-22 at 16 24 53

Usage - It's simpler than anything:

Simply Drag and drop CustomAlert folder in your project. that's it...

For Simple one:

        self.showCustomAlertWith(
            message: "This is a simple alert with a logo and message",
            descMsg: "",
            itemimage: nil,
            actions: nil)

For More Content:

        let actionDic : [String: () -> Void] = [ "YES" : { (
                print("tapped YES")
            ) }, "NO" : { (
                print("tapped NO")
            ) }]
        
        self.showCustomAlertWith(
            message: "This is an alert with a logo, message, additional icon, description, and 2 buttons with handlers",
            descMsg: "your description goes here. Change font size from XiB file.",
            itemimage: #imageLiteral(resourceName: "icon"),
            actions: actionDic)
You can’t perform that action at this time.