Comments (11)
I'm closing this issue as I've moved most of the items to individual issues.
The only thing I haven't brought over is
Stateless Cells (from @boourns)
and
Cell Style/View Updater related discussion:
#120 (comment)
#120 (comment)
I left these out because this seems like a discussion about HostCell
and I think what you're talking about here can be done by having a different UITableViewCell
subclass. The "kludges like encoding layouts as a generic parameters to the cell type" is specific to HostCell
to make it more general purpose and flexible. However, you can easily create another type of cell that has specific layout associated with it, or can be adjusted however. If you're keen on this I'd suggest taking HostCell and "forking" it and trying out some experiments.
from functionaltabledata.
Now that we can just use an URL in the Playgrounds app (or I just TIL today about it), we can make this a playground book as well
Check out Create Your Own Swift Playgrounds Subscription from #WWDC18 https://developer.apple.com/wwdc18/413
from functionaltabledata.
Often there are stateless cells in a UI, for example a static header. Perhaps these could be first class citizens instead of having to provide a dummy state?
from functionaltabledata.
Different thought: could the scope of the library be much smaller by vending cells instead of views to the update
closure, and getting rid of the all the cell styling structs? Then the API would only cover the things that FunctionalTableData needs to know to respond to the UITableViewDelegate methods that query information about the cell (like can it be selected, moved, etc)
I'm not advocating that would necessarily be better, maybe having the cell styles as a declarative struct leads to less bugs.. just an idea
from functionaltabledata.
I've been messing around with an alternative to CombinedCell
that makes it easier to compose multiple cells. Any interest in adding it here?
from functionaltabledata.
Another +1 for DifferenceKit: it handles the case where sections are moving at the same time as cells within those sections, which will ordinarily throw a UIKit exception. FTD's differ doesn't handle this, which was causing a crash on one of our screens, requiring some hacky workarounds with keys that made the animation worse.
from functionaltabledata.
Any chance we could revisit #65 ?
from functionaltabledata.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 3 days if no further activity occurs.
from functionaltabledata.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 3 days if no further activity occurs.
from functionaltabledata.
Then the API would only cover the things that FunctionalTableData needs to know to respond to the UITableViewDelegate methods that query information about the cell (like can it be selected, moved, etc)
I haven't thought this through fully, but it smells like it'd be possible to do this and build the existing cell styling system on top of it, by providing a default implementation of the state updater that calls into other implementations on conforming state types.
Passing the cell to the updater would eliminate a major pain point we have at the moment, where the constraints of the cell itself cannot be customized by the state updater - leading to kludges like encoding layouts as a generic parameters to the cell type.
from functionaltabledata.
Add UISwipeActionsConfiguration
from functionaltabledata.
Related Issues (20)
- Issues with using FunctionalTableData HOT 6
- Adding support for table row deletion HOT 2
- Deselecting table view cell automatically after selection HOT 4
- Incorrect contentOffset being set on pull-to-refresh
- Usage with Xib HOT 4
- Show example for custom view in readme HOT 1
- Editing style for a row isn't well defined
- Add support for UITableView and UICollectionView prefetch data source
- Convert our keys to being AnyHashable instead of String
- New Difference engine
- Create a "Playground Book"
- Investigate Codable TableSection and CellConfig
- UIContextualAction won't render both image and text if cell is <= 90pts HOT 2
- Feature request: TableCell highlighting HOT 9
- Touches cancelled when long pressed HOT 3
- Revisit new CellAction previewingViewControllerAction process HOT 1
- DemoApp link is broken HOT 2
- Row deletions - extra argument in call: rowActions HOT 1
- Support CellStyle selected property for UICollectionView. HOT 1
- Module compiled with Swift 5.2.2 cannot be imported by the Swift 5.3.2 compiler HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from functionaltabledata.