Created
July 14, 2020 16:53
-
-
Save stevencurtis/0d5d7d976158ca55a9789d3de487cccb to your computer and use it in GitHub Desktop.
validlengthpassword
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 validLengthPassword: AnyPublisher<Bool, Never> { | |
return $password.debounce(for: 0.2, scheduler: RunLoop.main) | |
.removeDuplicates() | |
.map{$0.count >= passwordLength ? true : false} | |
.eraseToAnyPublisher() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment