์ด ํ์ผ์ CodexยทClaude ๋ฑ ์ด ์ ์ฅ์์์ ์์
ํ๋ ๋ชจ๋ AI๊ฐ ๋จผ์ ์ฝ๋๋ค. Claude Code๋ CLAUDE.md๋ฅผ ํตํด ์ด ํ์ผ์ ์ฝ๋๋ค.
- UIKit + SwiftUI ํผํฉ ์ฑ. ํ๋ฉด ์ด๋์ UIKit(
UINavigationController)์ด ๋งก๊ณ , SwiftUI ํ๋ฉด์ HostingController๋ก ๊ฐ์ผ๋ค. - ํ๋ฉด ๊ตฌ์กฐ: window root =
CustomNavigationControllerํ๋ โ ๊ทธ root๊ฐHomeTabBarController. ํญ ์์UINavigationController๋ฅผ ๋ฃ์ง ์๋๋ค. ํญ ํ๋ฉด์์ pushํ๋ฉด ํญ๋ฐ๊ฐ ํจ๊ป ๊ฐ๋ ค์ง๋ค. - ๋น๋๊ธฐ๋ Combine, ๋ ์ด์์์ SnapKitยทThen, ๋คํธ์ํฌ๋ Alamofire.
- ๋ ์ด์ด:
PresentationโDomain(UseCaseยทRepository protocol) โData(RepositoryยทServiceยทDTO).
- ๊ณ ์น๊ธฐ ์ ์ ๊ฐ์ฅ ๊ฐ๊น์ด ๊ธฐ์กด ๊ธฐ๋ฅ์ ์ฝ๊ณ ๊ทธ ํจํด์ ๋ฐ๋ฅธ๋ค. ์ ์ฅ์ ์ ์ฒด๋ฅผ ํ ๋ฒ์ ์ ๋ฆฌํ์ง ์๋๋ค.
- ์์ฒญ์ ์๋ ๊ตฌ์กฐยท์ถ์ํยท์ด๋ฆยท์ฑ ์ ๋ถ๋ฆฌ๋ฅผ ์๋ก ๋์ ํ์ง ์๋๋ค.
- ๋ชจํธํ๋ฉด ๊ตฌํ์ ๋ฉ์ถ๊ณ ์ฌ์ฉ์์๊ฒ ๋ฌป๋๋ค. ํนํ ๋ช ์ธ ๊ฐ(๋ฌธ๊ตฌยทlabelยทvalue)์ ์ถ์ธกํด ๋ง๋ค์ง ์๋๋ค.
- ๋ก๊น ยท๋ฆฌํฉํฐ๋ง ๋ฑ์ ํ๋ฉด์ UI ๋์์ด๋ ๋น์ฆ๋์ค ํ๋ฆ์ ํจ๊ป ๋ฐ๊พธ์ง ์๋๋ค. ๋ฐ๊ฟ์ผ ํ๋ฉด ๋จผ์ ๋ฌป๋๋ค.
- ์ Swift ํ์ผ์
koin.xcodeproj/project.pbxproj์ ๋ฑ๋กํ๊ณ target membership์ ํ์ธํ๋ค. - ์์กด์ฑ(UseCaseยทRepositoryยทService)์ ํ๋ฉด์ ๋ง๋๋ ๊ณณ์์ ์ง์ญ
let์ผ๋ก ๋ง๋ ๋ค ๋๊ธด๋ค. ์ด๋์ ๋ผ์ด์ ์ธ์ ์์์ ๋ฐ๋ก ์์ฑํ์ง ์๋๋ค. - ์ ๊ทผ ์ ์ด๋
private extension๋ณด๋ค ๋ฉ์๋๋ณprivate func๋ฅผ ์ด๋ค. ๊ธฐ์กดprivate extension์ ์ผ๋ถ๋ฌ ๋ฐ๊พธ์ง ์๋๋ค. UITableViewยทUITableViewCell์ ์ด๋ฒคํธ๋ ๊ธฐ๋ณธ์ ์ผ๋ก publisher๋ก ๋ด๋ณด๋ธ๋ค. ์ฌ์ฉ์๊ฐ ์์ฒญํ์ง ์์ผ๋ฉด ํด๋ก์ ๋ฅผ ์ฃผ์ ํ์ง ์๋๋ค.- ์์
์นดํ๋ก๊ทธ ์ด๋ฏธ์ง๋
UIImage.appImage(asset:)/Image.appImage(asset:)๋ก๋ง ์ด๋ค. ๋ฌธ์์ด ์ด๋ฆ(UIImage(named:),Image("โฆ"))์ ์ฐ์ง ์๋๋ค. SF Symbol์appImage(symbol:)์ ์ด๋ค. - xcassets์ ์ด๋ฏธ์ง๋ฅผ ์ถ๊ฐํ๋ฉด
Koin/Core/Asset/ImageAsset.swift์// MARK: - <xcassets ํด๋๋ช >์๋์.imageset์ด๋ฆ ๊ทธ๋๋ก case๋ฅผ ์ถ๊ฐํ๋ค. - ์์์
appColor(_: ColorAsset)์ColorSystem(Koin/Core/DesignSystem/Color/ColorSystem.swift)์ด ๊ณต์กดํ๋ค. ์ฃผ๋ณ ์ฝ๋๊ฐ ์ฐ๋ ์ชฝ์ ๋ฐ๋ฅธ๋ค. ํฐํธ๋appFont(_:size:)๋๋Typography.
- ํ ์ปค๋ฐ์ ํ ์ฃผ์ . ์ ๋ชฉ ํ ์ค, ํ๊ตญ์ด,
type: ๋ด์ฉํ์ (feat,fix,design,refactor,chore,log). - ์ฌ์ฉ์๊ฐ ์์ฒญํ ๋๋ง ์ปค๋ฐยทpushํ๋ค.
์์ ์ด ์๋์ ํด๋นํ๋ฉด ํด๋น ์คํฌ์ ๋จผ์ ์ฝ๋๋ค.
koin-ios-architecture: ํ๋ฉด ์ถ๊ฐยท์์ , API ์ฐ๊ฒฐ, UIKit/SwiftUI ๊ตฌ์กฐ, HostingControllerยทViewModel ๊ท์ฝ.koin-logging-implementation: GA4 ๋ก๊น ์ถ๊ฐยท์์ , Notion ๋ก๊น ๋ช ์ธ์ ์ฝ๋ ๋์กฐ.
์คํฌ์ ๊ณ ์น๊ฑฐ๋ ์ถ๊ฐํ ๋: ํ ์คํฌ์ ํ ์ฃผ์ , SKILL.md๋ ์งง๊ฒ ๋๊ณ ์์ธํ ๋ด์ฉ์ references/์ ๋๋ค. description์ ์ธ์ ์จ์ผ ํ๋์ง(ํธ๋ฆฌ๊ฑฐ ํค์๋)๋ฅผ ์ ๋๋ค. ์ฝ๋๊ฐ ๋ฐ๋์ด ์คํฌ ๋ด์ฉ์ด ํ๋ ค์ง๋ฉด ๊ฐ์ PR์์ ์คํฌ๋ ๊ณ ์น๋ค.