๐Ÿ’ป ๊ฐœ๋ฐœ/Architecture

    [Architecture] MVVM + Clean Architecture๋ฅผ ์•Œ์•„๋ณด์ž

    SwiftUI ํŠน์„ฑ์ƒ ViewModel์„ ๋ถ„๋ฆฌํ•˜๋Š”๊ฒŒ ๋งค์šฐ ์‰ฝ๋‹ค. @ObservedObject ์งฑ์งฑ! ๋•๋ถ„์— ์‹ค์Šต์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๋Œ€๋ถ€๋ถ„์˜ ํ”„๋กœ์ ํŠธ์—์„œ ViewModel๋กœ ๋ถ„๋ฆฌ๋Š” ํ–ˆ์ง€๋งŒ ๋ฌธ์ œ๊ฐ€ ๋งŽ์•˜๋‹ค. Massive ViewModel์ด๋ž„๊นŒ? ๊ทธ๋ž˜์„œ ํ•ด์ปคํ†ค ๋•Œ๋Š” ์ด๋Ÿฐ ๊ฒƒ๋“ค์„ ๊ฑท์–ด๋‚ด๊ณ  ์•„ํ‚คํ…์ณ์ ์œผ๋กœ ์กฐ๊ธˆ ๋” ๊ดœ์ฐฎ์€ ์•ฑ์„ ๊ตฌํ˜„ํ•˜๊ณ  ์‹ถ์—ˆ๋‹ค. ๋‹คํ–‰ํžˆ๋„ ํŒ€์› ์ค‘ ํ•œ ๋ถ„์ด ํด๋ฆฐ ์•„ํ‚คํ…์ณ์— ๋Œ€ํ•ด ์ž˜ ์•Œ๊ณ  ๊ณ„์…”์„œ ๋„์›€์„ ๋งŽ์ด ๋ฐ›์•˜๊ณ , ์ „๋ณด๋‹ค๋Š” ์–ด๋Š์ •๋„ ์™„์„ฑ๋œ ์•ฑ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ์—ˆ๋‹ค. ์„œ๋ก ์ด ๊ธธ์—ˆ์ง€๋งŒ ์•„๋ฌดํŠผ ํ•ด์ปคํ†ค์„ ๊ณ„๊ธฐ๋กœ Clean Architecure์— ๋Œ€ํ•ด ๋‹ค์‹œ ๊ณต๋ถ€ํ•˜๊ณ  ์‹ถ์–ด์„œ ์ „์— ๋ถ๋งˆํฌํ•ด๋‘” ๊ธ€์„ ๋ณด๋ฉด์„œ ๊ฐœ๋…์„ ์ •๋ฆฌํ•ด๋ณด๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์กŒ๋‹ค. Clean Architecture and MVVM on iOS When we deve..