-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#8 home section UI, API implementation #12
Feature/#8 home section UI, API implementation #12
Conversation
- HomeMainBannerView ๋ฐ HomeMainBannerCell, HomeMainBannerPageControl ์ปดํฌ๋ํธ ๊ตฌํ - ๋ฐฐ๋ ์ด๋ฏธ์ง ์ถ๊ฐ (svg ํฌ๋งท) - HomeViewController ๋ด bannerImagesMock ์ถ๊ฐ, setUI ๋ฉ์๋ ์ถ๊ฐ
- ํ ์นดํ ๊ณ ๋ฆฌ ์์ญ ๊ตฌํ - HomeModels, HomeSection ๋ฐ MockData ์ถ๊ฐ - DiffableDatasource, CompositionalLayout ๊ธฐ๋ฐ ๋ฆฌํฉํ ๋ง (AnyHashable ์์ ํ์) - gitkeep ํ์ผ ์์ ์ถ๊ฐ
- HomeViewController ๋ด ์์ ๋ฆฌ์คํธ ์น์ ์ถ๊ฐ - HomeWishListCell, HomeWishListHeaderView ๊ตฌํ - Formatter extension ์ถ๊ฐ
- ํ ์ค๊ฐ ๊ด๊ณ ๋ฐฐ๋ ๋ทฐ (HomeMidBannerCell ๊ตฌํ)
- ํ ๋ญํน ๋ฆฌ์คํธ ๋ทฐ์ ํ์ํ ํ์ ๋ทฐ(ํค๋, ์ , ํธํฐ) ๊ตฌํ (HomeViewController์ ์ ๋ง ์ถ๊ฐ) - HomeModels์ ๋ญํน ๋ฆฌ์คํธ ๊ด๋ จ ๋ชจ๋ธ ์ถ๊ฐ - icn_home_arrow_right_black ์์ด์ฝ ์ถ๊ฐ
- HomeViewController ๋ด ๋ญํน ๋ฆฌ์คํธ ์น์ ์ฝ๋ ์ถ๊ฐ - ๋ญํน ๋ฆฌ์คํธ ๋๋ฏธ ์ด๋ฏธ์ง ์ถ๊ฐ - HomeSection > .rankingList ์ถ๊ฐ - ๋ญํน ๋ฆฌ์คํธ ๊ด๋ จ MockData ์ถ๊ฐ - HomeRankingListGradientBackgroundView ๊ทธ๋ผ๋์ธํธ ๋ฐฉํฅ ๋ณ๊ฒฝ - ์์ ๋ฆฌ์คํธ ์ groupSpacing์ผ๋ก ๋ณ๊ฒฝ
- MockData์ recommendListSection ๋ฐ์ดํฐ ์ถ๊ฐ - HomeRecommendListCell, HomeRecommendListHeaderView ๊ตฌํ - HomeViewController ๋ด ๋ญํน ๋ฆฌ์คํธ ์น์ ์ฝ๋ ์ถ๊ฐ - ์ถ์ฒ ์น์ ๊ด๋ จ ์ด๋ฏธ์ง ์ถ๊ฐ
- HomeApi, HomeDto, HomeTarget ์ถ๊ฐ - ResponseData ๋ชจ๋ธ ์ถ๊ฐ - ๋ชจ๋ธ ํ๋กํผํฐ ๋ค์ด๋ฐ ์์ - getHomeData ๋ฉ์๋ ๊ตฌํ - ์ ๋ด ์ด๋ฏธ์ง ๋ฐ์ดํฐ URL์ ํตํด ๋ฐ์์ค๋๋ก ์์
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฝ๋์์ด ์์ฒญ ๋ง๋ค์ ใ ใทใท ๊ณ ์ํ์ จ์ต๋๋ค
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๊ฑฐ discard ํด๋ ๋์ง ์๋์ ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค๋ต..!
extension Formatter { | ||
static let currency: NumberFormatter = { | ||
let formatter = NumberFormatter() | ||
formatter.numberStyle = .decimal // ์ฒ ๋จ์๋ก ',' ์ถ๊ฐ | ||
formatter.maximumFractionDigits = 0 // ์์์ ์๋ฆฌ๋ ์๋๋ก ์ค์ | ||
formatter.minimumFractionDigits = 0 | ||
return formatter | ||
}() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ ์ด ๋ถ๋ถ ์ฝ๋ ๋ด์์ ๊ตฌํํ์๋๋ฐ ๋ฐ๋ก ๋ถ๋ฆฌํด์ฃผ์
จ๋ค์ ๐
ํฉ์น๋ฉด์ ํ์ฉํ๊ฒ ์ต๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ตฟ๊ตฟ
- BASE_URL ์ถ๊ฐ (DEV.xcconfig, RELEASE.xcconfig ํ์ผ ์ถ๊ฐ ํ์) - ์ ๋ด indentifer ์ ๊ฑฐ
88aba60
to
ade88a2
Compare
๐ PR ์์ฝ
๐ฑ ์์ ํ ๋ด์ฉ
(1) UI
(2) API
๐ฑ PR ํฌ์ธํธ
T
ํ์ ์ผ๋ก JSON ๋์ฝ๋ฉํ๋ ๊ฒ ์๋๋ผResponseData<T>
ํ์ ์ผ๋ก ๋์ฝ๋ฉํ๋๋ก ์์ ํ์ต๋๋ค.ResponseData
์ ๊ฐ์ด ๋ด๋ ค์ต๋๋ค.AnyHashable
๋ก ์ค์ ํ ๋ค์, ์ด๋ฅผ ์บ์คํ ํด์ ์ฌ์ฉํ๊ณ ์๋๋ฐ, Swift6์์ ์ด์ ๊ฐ์ ๋ฐฉ์์ด ํ์ฉ๋์ง ์๋๋ค๊ณ ํ๋๋ผ๊ณ ์,, ๋ฐ์ดํฐ ๊ตฌ์กฐ๊ฐ ๋ค๋ฅผ ๋AnyHashable
์ ์ฌ์ฉํ๋ ๋์ ์ด๋ป๊ฒ ์์ ํ ์ ์์๊น์..?๐ธ ์คํฌ๋ฆฐ์ท
|ํ์ผ์ฒจ๋ถ๋ฐ๋|
๐ฎ ๊ด๋ จ ์ด์