Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.1 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.1 KB

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.