From c52090aee2e5ab23b3f37f16b72bc03b128fd603 Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Fri, 10 Jun 2016 11:26:10 +0200 Subject: [PATCH] Patches the problem with <-> clearing the value on return. Correct solution is still unknown. --- RxExample/RxExample/Operators.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxExample/RxExample/Operators.swift b/RxExample/RxExample/Operators.swift index df484c65..f70a2efc 100644 --- a/RxExample/RxExample/Operators.swift +++ b/RxExample/RxExample/Operators.swift @@ -51,7 +51,7 @@ func <-> (textInput: RxTextInput, variable: Variable) -> Disposable { let nonMarkedTextValue = nonMarkedText(textInput) - if nonMarkedTextValue != variable.value { + if nonMarkedTextValue != nil && nonMarkedTextValue != variable.value { variable.value = nonMarkedTextValue ?? "" } }, onCompleted: {