Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support validation for non NIL fields #8

Closed
andreivladmatei opened this issue Sep 2, 2020 · 2 comments
Closed

Support validation for non NIL fields #8

andreivladmatei opened this issue Sep 2, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@andreivladmatei
Copy link

Motivation

There are many occasions where you have non nil Published variables in SwiftUI's ViewModel, validation of this kind of fields would be a nice addition.

@SvenTiigi
Copy link
Owner

Hey @andreimateiro,

Currently ValidatedPropertyKit requires an optional type in order to set nil on a @Validated property.

As soon as ValidatedPropertyKit hits a 1.0 release the support for non nil field will be available.
Please feel free to open up a PR.

@SvenTiigi SvenTiigi added the enhancement New feature or request label Jan 17, 2021
@SvenTiigi
Copy link
Owner

Hey @andreimateiro,

Please check out the latest release 0.0.5 of ValidatedPropertyKit which added support for non optional properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants