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

Example that works with MVVM #13

Open
Xioshock opened this issue Mar 29, 2023 · 1 comment
Open

Example that works with MVVM #13

Xioshock opened this issue Mar 29, 2023 · 1 comment
Assignees

Comments

@Xioshock
Copy link

Is your feature request related to a problem?

Yes, the problem is that I can't use two wrappers at once. @validated and for example @published

What solution would you like?

Maybe new wrapper that wraps both @validated and @published. @ValidatedPublisher or something like that

What alternatives have you considered?

None so far

Any additional context?

@published
@validated(.range(8...))
var exampleField = ""

or

@binding
@validated(.range(8...))
var exampleField = ""

@Xioshock
Copy link
Author

Xioshock commented Apr 3, 2023

I couldn't figure it out in the end. So I created a PR that uses new wrapper

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

No branches or pull requests

2 participants