Skip to content

This swiftUI Demo is very simple & easy to understand. This swiftUI demo includes On-boarding screens, login screen, forgot password screen, sign up screen, home & logout.

License

Notifications You must be signed in to change notification settings

Mindinventory/SwiftUI-App

Repository files navigation

SwiftUI-Sample-App

This swiftUI Demo is very simple & easy to understand. This swiftUI demo includes On-boarding screens, login screen, forgot password screen, sign up screen, home & logout.You can read more from Medium

video

Description

In the onboard view, we used the page control with view controller and also put the next button to jump the LoginUI.

In the login view, user need to enter the credentials (Email & Password) and after completion of validation it successfully logged in it will save in user defaults.

In the Forgot password view, user need to enter Email and after completion of validation of email it will successfully dismiss.

In the Sign Up view, user need to enter user data (First Name, Last Name, Email, Contact No, Date of Birth, Password & Confirm Password ) and after completion of validation it will successfully dismiss.

In the Home view, user will get 2 tabs like (Home & Favourites). In the Home tab, user will get scrollable list & collection. In the favourites tab, user will get segments, login using combine framework, picker & user can also logout.

Table of Contents

  • OnBoarding UI - Created onboarding UI, using view controllers & page control
  • Login UI - It will validate login credentials, after successfully login it will save data in user defaults.
  • Forgot Password UI - presented forgot password UI, using presentation mode and also validate an email.
  • Sign UP UI - It will also validate with all user data,
  • Tab bar (Home & favourites )
  • Logout

UI controls

  • Page controller (using view controllers)
  • Picker
  • Scrollview
  • Navigation View
  • VStack, HStack, Zstack
  • List
  • Collection
  • Tabbar
  • Image
  • Text
  • Alert
  • TextField
  • SecureTextField
  • Buttons (Action & Navigation)

By Apple

Xcode 11.1 iOS 13 iPadOs 13

Documentation

SwiftUI - https://developer.apple.com/xcode/swiftui/

Tutorials

  • Ray wenderlich
  • Hacking with Swift

LICENSE!

SwiftUI-Sample-App is MIT-licensed.

Conclusion

While there’s still a ton of information left to be discovered about SwiftUI.I hope this article has cleared up some of the major question marks. I’ll keep digging, and will report all of my new findings as soon as possible.