Open MaIronCool opened 6 years ago
add super.init() in that method
Which place to add super.init() method
At the beginning of the method.
Like below
public init(indices: [String]) {
super.init()
for i in 0..<indices.count{
...
}
}
Thank You
i'm getting following error Initializer does not override a designated initializer from its superclass
public override init() { super.init() }
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.
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?