KiranJasvanee / InfinityExpandableTableTree

Provides a tableview cells expansion (expanding cell area - subcells'), you can expand cells up to level ∞-1. Use Dynamic JSON Tree structure to initialise, or use static initialisers - Indexing/Swifty Closures.
MIT License
167 stars 45 forks source link

How to use this for my custom objects and NOT Parent / Child object? #16

Open hem091 opened 5 years ago

hem091 commented 5 years ago

Hi, thank you for the awesome library.

You are using "Parent" and "Child" model in the library everywhere but I have different models for my use case. My use case is same as Facebook where I have "Activity" model and under that I have array of "ActivityComment" model and under that for replies I have array of "ActivityComment" model again, so it is like Activity -> [ActivityComment] ActivityComment -> [ActivityComment]

How do I use this library for my models instead of "Parent" and "Child" models given.

Please reply asap as I am in the middle of my development.

Thank You

trickpirata commented 5 years ago

You need to change the file access of Node to Open in order to subclass it. I suggest create a frk or ask for a change request.