Alecrim/AlecrimCoreData

Swift 3 ambigous use of 'row'

Closed this issue · 3 comments

I just migrated to swift 3 and i am getting this error ambiguous use of row on indexPath same on section and item.

Here is the ambiguity:

screen shot 2016-11-12 at 1 14 55 am

In your source code you have an extension for indexPath and that is conflicting with the apple's extension. As you can see in the screenshot above.

More details can be found on this question.

For now i am not using fetch result controller in my project so i just commented out those conflicting properties and my code works fine. I think we have to use some other name for your extensions.

Just add this lines:

let index = indexPath as NSIndexPath
let row = index.row

http://stackoverflow.com/questions/40535485/ambigous-use-of-section

Why not removing this extension, and using Swift 3 IndexPath init(row:section:) for tableView and init(item:section:) for collectionView?

Then we'll have no conflict for row and sections. This is useless code in my opinion for the latest ACD version.

#162

This issue was resolved by PR #162.