Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.55 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.55 KB

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.