##わからないこと
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 編集