SSUMC-6th / iOS_A

SSUMC 6๊ธฐ iOS ์Šคํ„ฐ๋”” A์กฐ
0 stars 0 forks source link

[JC/Week9] Version 1.1 - AuthViewModel ์ตœ์ ํ™” #67

Closed jayn2u closed 4 months ago

jayn2u commented 5 months ago

๐Ÿ“Summary

ํ•ด๋‹น PR์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์š”์•ฝํ•ด์ฃผ์„ธ์š”.

๐Ÿ’กPR Point

์ฝ”๋“œ๋“ค์—์„œ ํ•ต์‹ฌ ์ฝ”๋“œ๋“ค์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. ๋˜๋Š” ์•Œ๊ฒŒ๋œ ๋ถ€๋ถ„๋“ค์„ ๊ณต์œ ํ•ด์ฃผ์„ธ์š”.

๐Ÿค” Question

์ž‘์—…ํ•˜์‹œ๋ฉด์„œ ๊ถ๊ธˆํ–ˆ๋˜ ์งˆ๋ฌธ๋“ค์„ ๋‚จ๊ฒจ์ฃผ์„ธ์š”.

๐Ÿ”‘ย Simulator

simulator ์˜์ƒ์„ ํ™”๋ฉด ๋…นํ™” ํ›„ ๋ณด์—ฌ์ฃผ์„ธ์š”.

jayn2u commented 5 months ago

๐Ÿค” Discussion

AuthViewModel์„ ์‚ฌ์šฉํ•˜๋Š”๋ฐ, ์žˆ์–ด์„œ body ํ”„๋กœํผํ‹ฐ์—์„œ ๊ฐ์ฒด์˜ ์ฐธ์กฐ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š” ๊ฐ์ฒด๋Š” ์•ฑ ์ „๋ฐ˜์—์„œ ๋™์ž‘ํ•ด์•ผ ํ•˜๋Š” ์ฝ”๋“œ์ธ๋ฐ, AuthView์—์„œ๋งŒ ์‚ฌ์šฉํ•˜๋ฉด ๋‹ค๋ฅธ View์—์„œ ๊ฐ์ฒด์˜ ์ฐธ์กฐ ๋ฌธ์ œ๊ฐ€ ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค.

๊ทธ๋ž˜์„œ ์ด ์‹œ์ ์—์„œ EnviromentObject ํ”„๋กœํผํ‹ฐ ๋ž˜ํผ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋กœ์„œ ๋™์ž‘ํ•ด์•ผ ํ•˜์ง€ ์•Š๋‚˜๋ผ๋Š” ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค. ์ด ๋ถ€๋ถ„์—์„œ๋Š” ์ถ”ํ›„ ์—…๋ฐ์ดํŠธํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

ํ˜„์žฌ ๋ฌธ์ œ์˜ ์›์ธ์„ ์–ด๋Š์ •๋„ ํŒŒ์•…ํ–ˆ๊ธฐ์— ํ™˜๊ฒฝ๋ณ€์ˆ˜์— ๋Œ€ํ•ด์„œ ๊ณต๋ถ€๋ฅผ ํ•˜๊ณ  ์—…๋ฐ์ดํŠธ๋œ ์ฝ”๋“œ๋ฅผ ๋ฐ˜์˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.