質問編集履歴
1
文章の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
##わからないこと
|
2
|
-
```
|
2
|
+
```Swift
|
3
3
|
post.isLiked = post.likes![currentUserId] != nil
|
4
4
|
```
|
5
5
|
の最後の``` != nil ```の意味がわかりません。
|
6
6
|
|
7
|
+
######全文
|
8
|
+
```Swift
|
9
|
+
if let currentUserId = Auth.auth().currentUser?.uid {
|
10
|
+
if post.likes != nil {
|
11
|
+
post.isLiked = post.likes![currentUserId] != nil
|
12
|
+
}
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
7
16
|
すみませんがよろしくお願いします。
|