From f74d35cc8c6b55809d11d6ad6dcb575931213b76 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Sat, 18 Jun 2016 06:21:24 +0300 Subject: [PATCH] update readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f053bd..7c0143e 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,9 @@ It's never been so easy to deal with table views. ```swift let users = /* some users array */ -tableDirector += users.filter({ $0.state == .active }).map({ TableRow(item: $0.username) }) +let rows: [Row] = users.filter({ $0.state == .active }).map({ TableRow(item: $0.username) }) + +tableDirector += rows ``` Done, your table is ready. It's just awesome!