Open
Description
Hi,
I'm looking to combine the usage of FUISortedArray
and FUIIndexTableViewDataSource
as follows:
let sortedArray = FUISortedArray(query: query, delegate: nil) { (lhs, rhs) -> ComparisonResult in
return lhs.compare(rhs)
}
let dataSource = FUIIndexTableViewDataSource(collection: sortedArray, data: data, view: tableView) { tableView, indexPath, snapshot in
/* ... */
}
I can see there is a constructor available on FUITableViewDataSource
that accepts a FUICollection
, but there doesn't seem to be one for FUIIndexTableViewDataSource
.
Is this possible?
Thanks