Comments (2)
Hello Dominik,
What you want to achieve can be a little complicated to make, of course can be done. If you check out the new update I have made for the repo, I have changed the structure of the project to make it more easy to follow.
Every time a cell is expanded you need to keep the record for its position because it any other it's collapsed above the cell it indexPath
change. You can check out in the findParent(_:)
method.
To do what you want you have to keep an extra record of parents because can be several parents inside parents and update properly when a cell is tapped an know where is parent, subParent of child.
I hope this can help you.
from accordionswift.
Thank you for such fast response, I am immediatly on it
from accordionswift.
Related Issues (20)
- Add unit test for the library
- Add Carthage support HOT 4
- Update the logo in the README to reflect the new name of the library HOT 3
- Add support for custom height in each cell
- Crash when Parent cell doesn't have any cell
- Include a CHANGELOG
- Cells not being expanded after a Parent cell with no Childs
- Expanding last group doesn't show offscreen child rows HOT 2
- Wrong name appears in lower parent cells during expand animation HOT 3
- Accordion Swift Crashes "Library not loaded". HOT 1
- Allow only one Parent Cell to be expanded at a time HOT 2
- Number of expanded parent cell not working?
- Out of bounds error HOT 1
- Crashed when calling configDataSource() method if sever don't have data.
- Reloading on dynamic data.
- Is it possible to use pagination in the TableView to add more elements when the user reaches the bottom?
- accordion UI issue in iPhone mini
- Crashed when expanded cell last cell at scrollCellIfNeeded() method in DataSourceProvider.swift
- Build Archive Error: Command PhaseScriptExecution failed with a nonzero exit code
- Group Separation
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 accordionswift.