From 23dc818eacf1cdb3daf2d1cd9f9852df9074e469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 6 Nov 2016 12:48:05 +0100 Subject: [PATCH] Documentation --- GRDB/Record/FetchedRecordsController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GRDB/Record/FetchedRecordsController.swift b/GRDB/Record/FetchedRecordsController.swift index 2a3ef0a81..285ae4235 100644 --- a/GRDB/Record/FetchedRecordsController.swift +++ b/GRDB/Record/FetchedRecordsController.swift @@ -793,6 +793,9 @@ private func databaseEventFilter(readInfo: SelectStatement.ReadInfo) -> (Databas /// /// You typically use the sections array when implementing /// UITableViewDataSource methods, such as `numberOfSectionsInTableView`. + /// + /// The sections array is never empty, even when there are no fetched + /// records. In this case, there is a single empty section. public var sections: [FetchedRecordsSectionInfo] { // We only support a single section so far. // We also return a single section when there are no fetched