May I ask how I can receive a bool result in my view controller like
func validateUser(username: String?, password: String?) -> AnyPublisher<Bool, Never> {
if let username = username, let password = password {
if !username.isEmpty && !password.isEmpty {
// true
}
}
}
, please?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: