Как передать через SplitViewController переменную?


#1

Пробовал вот так:

if segue.identifier == "catalog", let indexPath = tableView.indexPathForSelectedRow {
        let nav = segue.destination as! UINavigationController
        let vc = nav.topViewController as! CatalogList
        vc.row = row
}

Пишет такую ошибку:
Could not cast value of type ‘UISplitViewController’ (0x1db403fe0) to ‘UINavigationController’ (0x1db403c20).
warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.