I am new at rxswift framework.I have written a code below and I am not sure.Is there any retain cycle? Must I use weak reference to self?
loginButton.rx.tap.bind {
print(self.nameText.value ?? "")
self.nameText.accept("ahmet vefa saruhan")
}.disposed(by: disposebag)
second case is :
func myTestFunction(handler : () -> Void) {
handler()
}
myTestFunction {
self.isVisible = false
}
is here any retain cycle problem?