Skip to content

isthisjoe/AccountAlertView

Repository files navigation

AccountAlertView

Simple, quick account flow using UIAlertViews.

Written in Swift.

AccountAlertView

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()
}

Author

Joe Nguyen, isthisjoe@gmail.com

License

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

About

Simple, quick account flow using UIAlertView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages