回答編集履歴
1
補足
test
CHANGED
@@ -27,3 +27,21 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
[https://firebase.google.com/docs/auth/ios/manage-users?hl=ja#get_the_currently_signed-in_user](https://firebase.google.com/docs/auth/ios/manage-users?hl=ja#get_the_currently_signed-in_user)
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
##### 補足
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
guardを使っても良いと思います。
|
38
|
+
|
39
|
+
``` Swift
|
40
|
+
|
41
|
+
guard let currentUser = Auth.auth().currentUser else {
|
42
|
+
|
43
|
+
return
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
```
|