You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's just how Swift works. Not much ReactiveCocoa can do about that. Passing a method as a closure parameter like in Action(execute: showAPIHelperActionExec) will always capture self as a strong reference.
// My ViewModel can deinit
showAPIHelperAction = Action<(), Void, Never>{[unowned self] _ in
return self.showAPIHelperActionExec()
}
// My ViewModel can't deinit
showAPIHelperAction = Action(execute: showAPIHelperActionExec)
func showAPIHelperActionExec() -> SignalProducer<Void, Never> {
return SignalProducer<Void, Never> { [unowned self] observer, disposable in
observer.sendCompleted()
}
}
The text was updated successfully, but these errors were encountered: