Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 14, 2020 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/e1a714b547649b1cc9989d5c5d489a5b to your computer and use it in GitHub Desktop.
Save stevencurtis/e1a714b547649b1cc9989d5c5d489a5b to your computer and use it in GitHub Desktop.
uservalidation
var userValidation: AnyPublisher<Bool, Never> {
validLengthUsername
.zip(validLengthPassword)
.map { $0 && $1 }
.eraseToAnyPublisher()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment