Simple, quick account flow using UIAlertViews.
Written in Swift.
A highly configurable login / sign up account flow using only UIAlertViews.
var accountAlertView: AccountAlertView = AccountAlertView()
...
override func viewDidLoad() {
accountAlertView.loginWithUsername = {
(username: String!, password: String!, completed: () -> (), failed: (message: String!) -> ()) in
if self.isRequestSuccessful {
completed()
} else {
failed(message: "Failed Request.")
}
}
accountAlertView.signUpWithUsername = {
(username: String!, password: String!, completed: () -> (), failed: (message: String!) -> ()) in
if self.isRequestSuccessful {
completed()
} else {
failed(message: "Failed Request.")
}
}
accountAlertView.showAccountAlert()
}
Joe Nguyen, [email protected]
AccountAlertView is available under the MIT license. See the LICENSE file for more info.