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

Swift 4 - Stuck on build #12

Open MaIronCool opened 6 years ago

MaIronCool commented 6 years ago

XCode Version 9.2 (9C40b)

File: KJTreeView.swift Line 67 - self.addChild(inChild: &child, components: &components, index: index) Error: Use of 'self' in method call 'addChild' before super.init initializes self

What wrong?

AppinessVashum commented 6 years ago

add super.init() in that method

ronak4567 commented 6 years ago

Which place to add super.init() method

AppinessVashum commented 6 years ago

At the beginning of the method.
Like below public init(indices: [String]) { super.init() for i in 0..<indices.count{ ... } }

ronak4567 commented 6 years ago

Thank You

swami303 commented 6 years ago

i'm getting following error Initializer does not override a designated initializer from its superclass

public override init() { super.init() }

lpbas commented 6 years ago

If you are still interested, I've migrated the library to Swift 4.2 in my PR #15 since I'm using it in two of my production apps and needed to support the latest Swift version. Feel free to use my fork until my PR is merged.