hcanfly / Signin-UIKitandCombine

Sample app to create new user using UIKit and Combine. Combine allows moving the validation code out of the view controller and helps prevent bloat.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift UIKit Signin with Combine

Basic Swift sample app for collecting user info for signup, create account or the like and validating its acceptability before enabling the Signup button. It creates a UserInfo class that uses Combine to provide a clean easy way to validate the input. Using Combine and a separate class removes validation code from the view controller. UIKit requires some initialization that SwiftUI doesn't because it was retro-fitted for publishing. But that can go into an extension and still a very clean view controller.

|Screenshot

License

Signin-UIKitandCombine is licensed under the MIT License. See the LICENSE file for more information, but basically this is sample code and you can do whatever you want with it.

About

Sample app to create new user using UIKit and Combine. Combine allows moving the validation code out of the view controller and helps prevent bloat.

License:MIT License


Languages

Language:Swift 100.0%