Hello. I found a weird code in a class.
rx.didEndEditing.subscribe(onNext: { [unowned self] in
if text != nil || text != "" { return }
dropText()
}).disposed(by: disposeBag)
dropText() is a method of the class. I think I need to put self
before dropText() because it is in a closure.
But it works without self
. Why is it OK?