with one click
3dollars-in-my-pocket-ios
3dollars-in-my-pocket-ios contains 5 collected skills from 3dollar-in-my-pocket, with repository-level occupation coverage and site-owned skill detail pages.
Skills in this repository
๊ฐ์ด์ 3์ฒ์ ์๋ฒ OpenAPI ์คํค๋ง๋ฅผ ์กฐํ/ํ์ธํฉ๋๋ค. ์๋ฒ ์๋ตยท์์ฒญ ๋ชจ๋ธ ๊ตฌ์กฐ๊ฐ ๊ถ๊ธํ ๋, ํน์ API์ ํ๋(์: storeType ์ ๋ฌด)๋ฅผ ํ์ธํ ๋, ์ ๋ฐ์ดํธ๋ ์คํค๋ง๊ฐ ์๋์ง ํ์ธํ ๋ ์ฌ์ฉํฉ๋๋ค. dev OpenAPI ๋ฌธ์(https://dev.threedollars.co.kr/api/v3/api-docs)๋ฅผ ๋ฐ์ ํ์ํ ์คํค๋ง๋ง ์ถ์ถํด ๋ตํฉ๋๋ค.
ํ ํฌ์คํ ๋ฌธ์๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์๋ก์ด ํผ์ฒ๋ฅผ ๊ตฌํํ๋ ์ ์ฒด ํ์ดํ๋ผ์ธ์ ์๋ํํฉ๋๋ค. ๊ตฌํ โ ํ ์คํธ โ ์์ โ ์ปค๋ฐ๊น์ง ์๋์ผ๋ก ์ํํฉ๋๋ค.
iOS Repository ํจํด ์ ์. Protocol + Impl ๊ตฌ์กฐ ๋ฐ API enum + RequestType ํ์ฅ ํจํด์ผ๋ก ๋คํธ์ํฌ ๋ ์ด์ด๋ฅผ ๊ตฌํํฉ๋๋ค. async/await์ Result ํ์ ์ ์ฌ์ฉํ๋ฉฐ, ๋ค๋ฅธ iOS ํ๋ก์ ํธ์์๋ ์ฌ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค.
iOS MVVM ํจํด์ ViewModel ๊ตฌ์กฐ ์ ์. Input/Output/Route/Config/Dependency/State ํจํด์ผ๋ก ViewModel์ ์์ฑํฉ๋๋ค. Combine ๊ธฐ๋ฐ์ผ๋ก ์๋ํ๋ฉฐ, ๋ค๋ฅธ iOS ํ๋ก์ ํธ์์๋ ์ฌ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค.
iOS ViewModel ์ ์ ํ๋ก์ฐ ๊ธฐ๋ฐ ํ ์คํธ ์ฝ๋ ์๋ ์์ฑ. Given-When-Then ํจํด์ผ๋ก Input/Output ๊ฒ์ฆ ํ ์คํธ๋ฅผ ์์ฑํฉ๋๋ค. XCTest์ Combine์ ์ฌ์ฉํ๋ฉฐ, ๋ค๋ฅธ iOS ํ๋ก์ ํธ์์๋ ์ฌ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค.