diff --git a/Riot/Modules/Settings/Models/Section.h b/Riot/Modules/Settings/Models/Section.h index e566b8fa5..c565700c8 100644 --- a/Riot/Modules/Settings/Models/Section.h +++ b/Riot/Modules/Settings/Models/Section.h @@ -33,6 +33,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)addRow:(Row *)row; - (void)addRowWithTag:(NSInteger)tag; - (NSInteger)indexOfRowForTag:(NSInteger)tag; +- (BOOL)hasAnyRows; @end diff --git a/Riot/Modules/Settings/Models/Section.m b/Riot/Modules/Settings/Models/Section.m index e6f4a6b1a..1373332f0 100644 --- a/Riot/Modules/Settings/Models/Section.m +++ b/Riot/Modules/Settings/Models/Section.m @@ -51,4 +51,9 @@ }]; } +- (BOOL)hasAnyRows +{ + return _rows.count > 0; +} + @end