Issue with NSIndexPath on universal app (desktop)

Hello


I'm just starting the process of getting one of my apps working with the new Mac OS (Catalyst), however I have run into a problem with manipulating NSIndexPaths. When I try to init an indexpath with let indexPath = IndexPath(row: 0, column: 0) I get the error


Showing Recent Messages

Undefined symbol: (extension in UIKit):Foundation.IndexPath.init(row: Swift.Int, section: Swift.Int) -> Foundation.IndexPath


Which suggests that this extension hasn't been ported across yet - any ideas??


Thanks


Richard

Replies

Did you include all the needed import ? Including Foundation ?