From cb16bf549f55aaae1eeb5aa92fe5046da13f8031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 22 Sep 2018 14:57:22 +0200 Subject: [PATCH] Demo app README --- DemoApps/GRDBDemoiOS/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/DemoApps/GRDBDemoiOS/README.md b/DemoApps/GRDBDemoiOS/README.md index 3fc009db2..390f79325 100644 --- a/DemoApps/GRDBDemoiOS/README.md +++ b/DemoApps/GRDBDemoiOS/README.md @@ -9,12 +9,21 @@ Files of interest are: - [AppDelegate.swift](GRDBDemoiOS/AppDelegate.swift) - `AppDelegate` initializes, on application startup, a unique instance of [DatabaseQueue](../../README.md#database-queues) available for the whole application. + `AppDelegate` creates, on application startup, a unique instance of [DatabaseQueue](../../README.md#database-queues) available for the whole application. - [AppDatabase.swift](GRDBDemoiOS/AppDatabase.swift) - `AppDatabase` is responsible for the format of the application database. It uses [DatabaseMigrator](../../README.md#migrations) in order to setup the database schema. + `AppDatabase` is responsible for the format of the database. It uses [DatabaseMigrator](../../README.md#migrations) in order to setup the database schema. - [Player.swift](GRDBDemoiOS/Player.swift) - `Player` is a [Record](../../README.md#records) type, able to read and write in the database. It conforms to the standard Codable protocol in order to gain all advantages of [Codable Records](../../README.md#codable-records). \ No newline at end of file + `Player` is a [Record](../../README.md#records) type, able to read and write in the database. It conforms to the standard Codable protocol in order to gain all advantages of [Codable Records](../../README.md#codable-records). + +- [PlayersViewController.swift](GRDBDemoiOS/PlayersViewController.swift) + + `PlayersViewController` displays a list of players, and animates a table view with [FetchedRecordsController](../../README.md#fetchedrecordscontroller) + + +- [PlayerEditionViewController.swift](GRDBDemoiOS/PlayerEditionViewController.swift) + + `PlayerEditionViewController` can create or edit a player, and save it in the database.