Created
July 14, 2020 16:55
-
-
Save stevencurtis/e1a714b547649b1cc9989d5c5d489a5b to your computer and use it in GitHub Desktop.
uservalidation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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