Kris Wong
12/05/2019, 8:51 PMsection
and row
are vals on NSIndexPath
? They are vars in Swift, and since they're vals in the native bindings, there's no way to set them.Kris Wong
12/05/2019, 9:03 PMNSIndexPath.indexPathForRow
!Ellen Shapiro
12/05/2019, 9:26 PMstruct
for IndexPath
so they’re not mutable. In either case you can only set them with either an initializer or a factory methodEllen Shapiro
12/05/2019, 9:27 PM