The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
# Flex and easy
For now you can use validation more flexible
#### Validate complex structures with map keypath field deriving
```swift
public lazy var emailValidator: ValidationPublisher = {
$person.map(\.email)
.validateWithRegex(
regex: RegularPattern.email,
error: "Not email",
tableName: nil
)
}()
```
#### call .validate from any view as you want
```swift
makeRowWithIconAndPrefix(icon: "icon_facebook", prefix: "facebook.com/") {
TextField("Facebook", text: $viewModel.editedProfile.facebook)
}
.validate(for: viewModel.facebookValidator, configuration: .hintOnly)
```
Feel free to make your contribution!
Good luck!
Release 1.0.2
2 years ago
## What's Changed
* Make ValidationWrapper view more precise by @pridees in https://github.com/pridees/combine-validate/pull/2
- Debounce validation publishers
- Cover all RegularPattern RegExp cases
- Add test default method to RegexProtocol for more concise API
**Full Changelog**: https://github.com/pridees/combine-validate/commits/1.0.0
**Full Changelog**: https://github.com/pridees/combine-validate/compare/1.0.0-beta2...1.0.0-beta3
**Full Changelog**: https://github.com/pridees/combine-validate/commits/1.0.0-beta2