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
Now all DisposableBindable require to declare ViewModel type
With adding associatedtype ViewModel it will be detected automatically from func bind(viewModel: ViewModel, with bindDisposeBag: DisposeBag) implementation
public protocol Bindable {
init()
associatedtype ViewModel // here it is.
func bind(viewModel: ViewModel)
}
public protocol DisposableBindable: Bindable & BindableDisposeBagContainer {
func bind(viewModel: ViewModel, with bindDisposeBag: DisposeBag)
}
Now all
DisposableBindable
require to declareViewModel
typeWith adding
associatedtype ViewModel
it will be detected automatically fromfunc bind(viewModel: ViewModel, with bindDisposeBag: DisposeBag)
implementationNocturnal/Sources/Core/BindableView.swift
Line 62 in ace1c47
The text was updated successfully, but these errors were encountered: