teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

誤字

2020/12/17 10:16

投稿

abc1222
abc1222

スコア24

title CHANGED
File without changes
body CHANGED
@@ -42,7 +42,7 @@
42
42
  semaphore.wait()
43
43
  }//For文終わり
44
44
 
45
- print(circleList) //DispatchSemaphoreを使わないと[:]に、使うとたどり着かない
45
+ print(testList) //DispatchSemaphoreを使わないと[:]に、使うとたどり着かない
46
46
  ```
47
47
 
48
48
  ### 試したこと

1

Firestoreの使い方が間違っていたので修正しました。

2020/12/17 10:16

投稿

abc1222
abc1222

スコア24

title CHANGED
File without changes
body CHANGED
@@ -18,7 +18,7 @@
18
18
  for value in list {
19
19
  //非同期処理スタート
20
20
  db.collection("Test").document(value)
21
- .addSnapshotListener {document, error in
21
+ .getDocument { (document, error) in
22
22
 
23
23
  if let error = error {
24
24
  print("Error getting documents: (error)")