##わからないこと
Swift
1post.isLiked = post.likes![currentUserId] != nil
の最後の!= nilの意味がわかりません。
######全文
Swift
1if let currentUserId = Auth.auth().currentUser?.uid { 2 if post.likes != nil { 3 post.isLiked = post.likes![currentUserId] != nil 4 } 5 }
すみませんがよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
2018/12/03 05:51
2018/12/03 05:53
2018/12/03 05:59 編集
2018/12/03 06:02
2018/12/03 06:12 編集