Skip to content

etoledom/Heyou

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heyou

CI Status Version License Platform

This project is on alpha stage

Create UI Alerts on a declarative way:

Instantiate a Heyou alert instance with the elements you want in any order you want. You can bundle the elements in sections or have all of them in the root.

let alertController = Heyou(elements: [
    Heyou.Section(elements: [
        Heyou.Image(image: UIImage(named: "alert")!),
        Heyou.Title(text: "Title"),
        Heyou.Body(text: "Description text")
    ]),
    Heyou.ButtonsSection(buttons: [
        Heyou.Button(text: "OK", style: .normal)
    ])
])

Show the alert

alertController.show(onViewController: self)

heyou

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Heyou is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Heyou'

Author

etoledom

License

Heyou is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published