I\'m drawing a HUGE blank here.
Everything I\'ve found is about getting an index from a given row and column, but how do I get a row and a column from an in
Swift 4
typealias ColumnRowType = (column:Int, row:Int) func indexToColumnRow(index:Int, columns:Int) -> ColumnRowType { let columnIndex = (index % columns) let rowIndex = /*floor*/(index / columns) // we just cast to an `Int` return ColumnRowType(columnIndex, rowIndex) }