Skip to content

Commit

Permalink
Add text field methods to Alert class
Browse files Browse the repository at this point in the history
  • Loading branch information
akwilliamson committed Jul 24, 2015
1 parent 72780ca commit 7210ab4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Pod/Classes/LKAlertController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ public class Alert: LKAlertController {
self.message = message
}

public func addTextField() {
super.addTextField(nil, secureText: nil)
}

public func addTextField(placeholder: String) {
super.addTextField(placeholder, secureText: nil)
}

public func addTextField(secureText: Bool) {
super.addTextField(nil, secureText: secureText)
}

/**
Add a new button to the alert. It will not have an action and will have the Cancel style
Expand Down

0 comments on commit 7210ab4

Please sign in to comment.