mindz-eye / MYTableViewIndex

A pixel perfect replacement for UITableView section index, written in Swift
MIT License
523 stars 52 forks source link

Instance will be immediately deallocated because property 'dataSource' is 'weak' #22

Closed hipwelljo closed 5 years ago

hipwelljo commented 6 years ago

This function in TableViewIndex

open override func prepareForInterfaceBuilder() {
    dataSource = TableDataSource()
}

throws a warning in Swift 4.2 Instance will be immediately deallocated because property 'dataSource' is 'weak'