Rx Swift : Complex TextFields Validation
问题 I'm new to RxSwift and all example I found are handling simple cases. I'm trying to do form validation for my textfields. My custom TextField class has a method isValid() and a regexp . The isValid return is based on the regexp attribute. So far, I have written the following : let valids = [mLastName, mFirstName, mEmailField].map { $0.rx.text.map { text -> Bool in // I want more complex logic here // Like return field.isValid() return text!.characters.count > 0 } } let _ = Observable