From 7ec88b76e091cb3933535c8df4969367e0374ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 9 Sep 2025 22:18:50 +0200 Subject: [PATCH] Start an immediate observation In the iOS 26 simulator the demo app would show a flash of missing content. --- .../DemoApps/GRDBDemo/GRDBDemo/Views/PlayerListModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DemoApps/GRDBDemo/GRDBDemo/Views/PlayerListModel.swift b/Documentation/DemoApps/GRDBDemo/GRDBDemo/Views/PlayerListModel.swift index 0ea0b85ef..2c1fa4909 100644 --- a/Documentation/DemoApps/GRDBDemo/GRDBDemo/Views/PlayerListModel.swift +++ b/Documentation/DemoApps/GRDBDemo/GRDBDemo/Views/PlayerListModel.swift @@ -56,7 +56,7 @@ import GRDB // Start observing the database. // Previous observation, if any, is cancelled. - cancellable = observation.start(in: appDatabase.reader) { error in + cancellable = observation.start(in: appDatabase.reader, scheduling: .immediate) { error in // Handle error } onChange: { [unowned self] players in self.players = players