
Create the name field in a SwiftUI form, implementing the error protocol and inline error view, plus the name field validator and data binding for validation.
Master snapshot testing of SwiftUI forms using Swift Snapshot Testing. Install the dependency in Xcode, create snapshot tests for the form view, and verify initial, unhappy, and happy flows.
Explore how to extend your interactive form project using SwiftUI and compose frameworks, applying design before coding, unit testing, and snapshot testing, while sharing feedback and future topics.
To build a "web" form, you usually need to validate data, hide or show related fields, display errors, and update the "submit button" status. I always find it challenging to create an interactive form in an iOS App because we don’t have a certain architecture or design pattern to follow.
After Apple released SwiftUI and Compose frameworks in 2019, things got much easier. However, it still needs a bit of design effort to make the code testable and maintainable. That’s why I was inspired to make this course, in which I will teach you how to build an interactive form with SwiftUI and Compose frameworks.
Steps:
1. Understand the requirements of the project
2. Do the technical design with software design principles
3. Build the App step by step from scratch with Xcode
4. Add unit testing and snapshot testing and reach a testing coverage around 93%
What you will learn within this course :
How to leverage SwiftUI to build interactive iOS Apps.
How to decouple logics to make the code more testable and maintainable.
A well-designed template for building interactive forms that you can use in your project for free.
The best software engineering practices like designing before coding, unit testing, and snapshot testing, etc.