{"repo":"Open-Bytes/SwiftUIFormValidator","free":true,"listed":false,"github":"https://github.com/Open-Bytes/SwiftUIFormValidator","clone":"git clone https://github.com/Open-Bytes/SwiftUIFormValidator.git","description":"Declarative form validator for SwiftUI.","language":"Swift","stars":125,"topics":["swiftui","swift","macos","tvos","ios","apple","cocoapods","carthage","swiftpm","form"],"license":null,"category":"mobile-apps","readme_excerpt":"SwiftUIFormValidator Simple and clean approach to form validation SwiftUIFormValidator Introducing a clean, simple, and customizable approach to declarative form validation in SwiftUI. With our solution, you can easily validate user input and provide feedback in real-time, all while maintaining a sleek and intuitive user interface. Discuss it on Product Hunt 🦄 Table of contents - Usage - Basic Setup - Validators - Custom Validators - Custom Error View - Inline Validation - Validation Types - Triggering Validation - React to Validation Change - Installation - Swift Package Manager - CocoaPods - Accio - Carthage - Validation Messages - Contribution - Changelog - License :zap: Usage Basic Setup - Import FormValidator . - Declare FormManager FormManager is a powerful class for controlling form validation in your application. It allows you to trigger validation and listen to changes in the form, and gives you the flexibility to control how and when validation is shown to the user. - Specify the data type and validation rules for the input field The annotation @FormField along with a validator can be used to declare the field to be validated: - To specify validation for a TextField in a view, use .validation() modifier. Congratulations! Your field has now been validated. It's concise and simple! Validators Validator Description ---------------------------- ------------------------------------------------------------------------------------- CompositeValidator To combine multiple v","default_branch":null,"files":null,"tree":[],"storefront":"/r/Open-Bytes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Open-Bytes/SwiftUIFormValidator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}