diff --git a/Riot/Modules/Common/Models/Section.swift b/Riot/Modules/Common/Models/Section.swift index 024101da2..b244d30fe 100644 --- a/Riot/Modules/Common/Models/Section.swift +++ b/Riot/Modules/Common/Models/Section.swift @@ -41,12 +41,18 @@ final class Section: NSObject { addRow(Row.row(withTag: tag)) } + func addRows(withCount count: Int) { + for i in 0.. Int? { return rows.firstIndex(where: { $0.tag == tag }) } var hasAnyRows: Bool { - return rows.count > 0 + return rows.isEmpty == false } }