InfinityExpandableTableTree icon indicating copy to clipboard operation
InfinityExpandableTableTree copied to clipboard

Swift 4 - Stuck on build

Open MaIronCool opened this issue 6 years ago • 6 comments

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?

MaIronCool avatar Mar 13 '18 11:03 MaIronCool

add super.init() in that method

AppinessVashum avatar Jun 21 '18 07:06 AppinessVashum

Which place to add super.init() method

ronak4567 avatar Jul 13 '18 06:07 ronak4567

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

AppinessVashum avatar Jul 13 '18 07:07 AppinessVashum

Thank You

ronak4567 avatar Jul 13 '18 07:07 ronak4567

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

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

swami303 avatar Jul 21 '18 10:07 swami303

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.

lpbas avatar Nov 13 '18 23:11 lpbas