Custom size for tableview paging

I have a UITableView with multiple sections, each with a header. The table's sizing is such that one header and one cell take up the entire frame of the table. I would like to allow the user to scroll the table only one cell at a time. When I set paging = enabled, the scrolling does not work as intended, since the table scrolls one entire table frame at a time, rather than one cell at a time. This causes an undesired offset that keeps getting larger as you scroll the table. My research thus far suggests that I need to override scrollViewWillBeginDragging. See for example UITableView with custom paging-like behaviour on stack overflow. But every post that I read on this topic must have been before Swift, because it's all in Objective C. Please suggest Swift code to accomplish single cell paging for a tableview with section headers. Although paging itself may need to be disabled, the solution should be as close to true paging as possible. Below is code for my table's sizing. The table's frame size is 475. func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat { if (condition == true) { return CGFloat(425) } else { return CGFloat(375) } } func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { if (condition == true) { return CGFloat(50) } else { return CGFloat(100) } } UPDATE: The top answer here (Force UITableView to Scroll to Tops of Cells) also seems relevant. But, again, it's all in Objective C. Should the answers in any of these links prove correct, a simple translation of that answer into Swift would suffice.

Custom size for tableview paging
 
 
Q