Skip to content

Releases: pridees/combine-validate

1.1.0

07 Dec 15:13
53946cd
Compare
Choose a tag to compare

Flex and easy

For now you can use validation more flexible

Validate complex structures with map keypath field deriving

 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

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

26 Nov 13:08
8883541
Compare
Choose a tag to compare

What's Changed

  • Make ValidationWrapper view more precise by @pridees in #2

1.0.1

13 Nov 20:41
afa6fad
Compare
Choose a tag to compare
  • Debounce validation publishers
  • Cover all RegularPattern RegExp cases
  • Add test default method to RegexProtocol for more concise API

1.0.0

09 Nov 12:50
Compare
Choose a tag to compare

1.0.0-beta3

07 Nov 19:50
Compare
Choose a tag to compare
1.0.0-beta3 Pre-release
Pre-release

1.0.0-beta2

07 Nov 15:38
Compare
Choose a tag to compare