Skip to content

A simple, customisable, easy to use popup dialog for iOS written in Swift. Replaces UIAlertController alert style.

Notifications You must be signed in to change notification settings

megaganjotsingh/GSNativeAlertExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

GSNativeAlertExample

Easy to Use

Define alert here

       let alert = GSAlert()

You can simply set titles, messages and buttons

      alert.set(
          title: Place NSAttributedString Here,
          messages: [
              (Place UIImage Here, Place NSAttributedString Here),
              (Place UIImage Here, Place NSAttributedString Here)
          ],
          alertButtons: [
              (Place NSAttributedString Here, {
                  print("OKAY Taped")
              }),
              (Place NSAttributedString Here, Perform Some Action Or simply pass nil),
      ])

Now present alert in a simple way

      present(alert, animated: true, completion: nil)

Collaboration

I tried to build an easy to use API, but I'm sure there are ways of improving and adding more features, If you think that we can do the GSNativeAlertExample more powerful please contribute with this project.

About

A simple, customisable, easy to use popup dialog for iOS written in Swift. Replaces UIAlertController alert style.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages