Profile

์„ฑ๋นˆ์ด์˜ ๊ธฐ๋ก์žฅ

์„ฑ๋นˆ์ด

[Swift] Firestore .setData(from:) ์•ˆ๋˜๋Š” ํ˜„์ƒ ํ•ด๊ฒฐ

๋ถ„๋ช… ๋ฌธ์„œ์—๋Š”!!! firebase.google.com/docs/firestore/manage-data/add-data Cloud Firestore์— ๋ฐ์ดํ„ฐ ์ถ”๊ฐ€ | Firebase ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ช‡ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์œผ๋กœ Cloud Firestore์— ๋ฐ์ดํ„ฐ๋ฅผ ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฌธ์„œ ์‹๋ณ„์ž๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ์ง€์ •ํ•˜์—ฌ ์ปฌ๋ ‰์…˜ ๋‚ด์˜ ๋ฌธ์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ์ปฌ๋ ‰์…˜์— ์ƒˆ ๋ฌธ์„œ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ Clo firebase.google.com .setData(from: ~~) ์œผ๋กœ ์ปค์Šคํ…€ ๊ฐ์ฒด๋ฅผ ์—…๋กœ๋“œํ–ˆ๋Š”๋ฐ, ๋‚œ ์•„๋ฌด๋ฆฌ ํ•ด๋ด๋„ from ์ธ์ž๋ฅผ ๊ฐ€์ง„ setData ํ•จ์ˆ˜๊ฐ€ ์—†๋‹ค. ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ ๋‚˜๋งŒ ๊ฒช๋Š” ๊ฒŒ ์•„๋‹ˆ์—ˆ๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ import FirebaseFirestoreSwift ์ž„ํดํŠธ ์ถ”๊ฐ€ํ•˜๋ฉด ๋.. ์™œ ์ด ๋‚ด์šฉ์€ ๋ฌธ์„œ..

๐Ÿงก ์Šค์œ„ํ”„ํŠธ ยท