GGsrvg/LDS

List Data Source

★ 1Forks 0SwiftGitHub ↗Compare

README

LDS

LDS is List Data Source

# Podfile
use_frameworks!

target 'TARGET_NAME' do
    pod 'LDS'
end

Replace TARGET_NAME and then, in the Podfile directory, type:

$ pod install

Have problems work with UICollectionView

How use in view controller

ViewDidLoad

adapter.observableDataSource = contactsObservableDataSource

And deinit

deinit {
    adapter.observableDataSource = nil
}

How use in cell

When you set content to cell

adapter.observableDataSource = contactsObservableDataSource

And when cell reusing in prepareForReuse() method

adapter.observableDataSource = nil

Contributors

GGsrvg

Issues