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
For example, I'd like to be able to use tableView:willDisplayHeaderView:forSection:, but I don't see an easy way of hooking into that delegate declared in DataSource.
Tried subclassing DataSource, but then I get the Redudant conformance... error. I could fork the repo, or use a different data source entirely, but those solutions are much 'heavier'; it feels like there must be a better way that I'm missing.
Thanks!
The text was updated successfully, but these errors were encountered:
I think your second solution, with some mix of composition, would be the best way down this path. Having your data source call into a Static.DataSource for those specific methods would allow you to combine two different functionalities.
However, I think not having access to tableView:willDisplayHeaderView:forSection: is definitely a downer... I'm wondering if there are better solutions here for those desiring that type of functionality.
Framework is a strong piece of work, thanks for sharing it! One of those things I wish was built into iOS itself.
Have a usage question for you all (that might end up just being a Swift question, but still!) - is there a way to add or modify the
UITableViewDelegate
methods onDataSource
? (https://github.com/venmo/Static/blob/master/Static/DataSource.swift#L260).For example, I'd like to be able to use
tableView:willDisplayHeaderView:forSection:
, but I don't see an easy way of hooking into that delegate declared inDataSource
.Tried subclassing
DataSource
, but then I get theRedudant conformance...
error. I could fork the repo, or use a different data source entirely, but those solutions are much 'heavier'; it feels like there must be a better way that I'm missing.Thanks!
The text was updated successfully, but these errors were encountered: