Skip to content

sadothcoder/K-CustomAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages