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)
To run the example project, clone the repo, and run pod install
from the Example directory first.
Heyou is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Heyou'
etoledom
Heyou is available under the MIT license. See the LICENSE file for more info.