Skip to content

mikechan1234/SwiftUI-Learning-Binding-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SwiftUI-Learning-Basics

  • Developed in Xcode 11
  • This is a simple SwiftUI application shows a username and password text field with a login button. The login button takes the app to a simple blank screen
  • The app has simple validation via the ViewModel. This demonstrates how to do basic binding in the View Model and usage it in the view
  • ObservableObject protocol is used along with @Published property wrapper for its properties are used to demonstrate binding and how you can use bindings to create a computed property which updates the UI