質問編集履歴

1

文章の追加

2018/12/03 05:43

投稿

reeeeet
reeeeet

スコア95

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ##わからないこと
2
2
 
3
- ```
3
+ ```Swift
4
4
 
5
5
  post.isLiked = post.likes![currentUserId] != nil
6
6
 
@@ -10,4 +10,22 @@
10
10
 
11
11
 
12
12
 
13
+ ######全文
14
+
15
+ ```Swift
16
+
17
+ if let currentUserId = Auth.auth().currentUser?.uid {
18
+
19
+ if post.likes != nil {
20
+
21
+ post.isLiked = post.likes![currentUserId] != nil
22
+
23
+ }
24
+
25
+ }
26
+
27
+ ```
28
+
29
+
30
+
13
31
  すみませんがよろしくお願いします。