Skip to content

Corrections to do #3

@ramoliveira

Description

@ramoliveira
  • Initial position of the first cell, on setCellsPosition():
private func setCellsPosition() {
    guard let sections = dataSource?.numberOfSections() else { return }
    for i in 0..<sections {
        guard let rows = dataSource?.numberOfRows(inSection: i) else { return }
        for j in 0..<rows {
            if j == 0 {
                cells[j].position.y = self.tableFrame.height * 0.4
            } else {
                cells[j].position.y = self.previousCellPosition - self.rowHeight
            }
            self.previousCellPosition = cells[j].position.y
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    codeSomething needs to be done in the code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions