-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update Signup #78
base: main
Are you sure you want to change the base?
Update Signup #78
Conversation
Uploading changes of the PlansView exercise
EricMargay-PlansViewExercise
Update SignUpView.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM[9]
@@ -1,18 +1,104 @@ | |||
// | |||
// PlansView.swift | |||
// SwiftUIBasics | |||
// ContentView.swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file not required on PR
$password | ||
.receive(on: RunLoop.main) | ||
.map { password in | ||
let pattern = "[!\"#$%&'()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~]+" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let pattern = "[!\"#$%&'()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~]+" | |
let pattern = "[\\W]+" |
Non word regex works better
Publishers.CombineLatest4($isValidPasswordLowerCase, $isValidPassWordOneSymbol, $isValidPasswordOneNumber, $isValidPre) | ||
.map { (a, b, c, d) in | ||
return a && b && c && d | ||
} | ||
.assign(to: \.isValidPre, on: self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
circular reference you are evaluating isValidPre and assigning it to the same variable
Update Signup #44