From a2f7ccd4fc62d0e5aa123e93e5e33f99b8c561db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 26 Sep 2015 19:40:57 +0200 Subject: [PATCH] README.md: more realistic example of RowConvertible --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78b1379b3..6ac3dd422 100644 --- a/README.md +++ b/README.md @@ -344,9 +344,9 @@ for (columnName, databaseValue) in row { ... } // ("a", 1), ("a", 2) You may use the `RowConvertible` protocol, which **grants fetching methods to any type** that can be initialized from a database row: ```swift -struct PointOfInterest : RowConvertible { +final class PointOfInterest : NSObject, MKAnnotation, RowConvertible { var coordinate: CLLocationCoordinate2D - var title: String + var title: String? init(row: Row) { self.coordinate = CLLocationCoordinate2DMake(