-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/#168 designsystem #176
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
Conversation
- Added a standard .gitignore file for the iosApp directory to exclude build artifacts, user settings, and other generated files from version control.
- Added AppColor enum for common colors. - Added color asset files for various shades of blue, green, orange, and gray, as well as black, white, primary, and error colors. - Configured the project to include color assets. - Added Typography struct and TextStyle struct for managing text styles. - Added TypographyModifier view modifier for applying text styles. - Added a View extension for easy application of typography styles. - Added NotoSansKR font files (Bold, Light, Medium, Regular). - Updated ContentView to use the new Typography and AppColor. - Configured project settings to include the new font files and exclude Info.plist from file synchronization for the "suwiki" folder.
Walkthrough์ด ๋ณ๊ฒฝ์ iOS ์ฑ ํ๋ก์ ํธ์ ๋์์ธ ์์คํ ์ ๊ธฐ๋ฐ์ ๊ตฌ์ถํฉ๋๋ค. ์์ ๋ฐ ํ์ดํฌ๊ทธ๋ํผ ๋ฆฌ์์ค๋ฅผ ์ถ๊ฐํ๊ณ , SwiftUI์์ ์ผ๊ด๋ ์คํ์ผ๋ง์ ์ ์ฉํ ์ ์๋๋ก ๊ณตํต ์ฝ๋์ ํ ๋ง ํด๋์ค๋ฅผ ๋์ ํ์ผ๋ฉฐ, ๊ด๋ จ ๋ฆฌ์์ค ํ์ผ ๋ฐ gitignore ๊ท์น์ ์ ๋นํ์ต๋๋ค. Changes
Sequence Diagram(s)sequenceDiagram
participant App as suwikiApp
participant Env as Environment
participant View as ContentView
participant Theme as TypographyTheme
participant Color as AppColor
App->>Env: .environmentObject(TypographyTheme())
Env->>View: ContentView()์ TypographyTheme ์ฃผ์
View->>Theme: typography.caption1 ์คํ์ผ ์ฐธ์กฐ
View->>Color: AppColor.grayDA ์์ ์ฐธ์กฐ
View->>View: Text("Hello, suwiki!")์ ์คํ์ผ ์ ์ฉ
Assessment against linked issues
Poem
๐ Recent review detailsConfiguration used: CodeRabbit UI ๐ Files selected for processing (2)
โ Files skipped from review due to trivial changes (1)
๐ง Files skipped from review as they are similar to previous changes (1)
โฐ Context from checks skipped due to timeout of 90000ms (1)
โจ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
๐ญ Outside diff range comments (1)
iosApp/suwiki.xcodeproj/project.pbxproj (1)
231-237:โ ๏ธ Potential issue๋ฆฌ์์ค ๋น๋ ๋จ๊ณ์์
.gitignore์ ์ธ ํ์
Resources Build Phase์๋.gitignore๊ฐ ํฌํจ๋์ด ์์ต๋๋ค. ์์ ์ง์ ํ PBXBuildFile ์ ๊ฑฐ์ ๋ง์ฐฌ๊ฐ์ง๋ก, ๋ฆฌ์์ค ๋น๋ ๋จ๊ณ์์๋ ํด๋น ํญ๋ชฉ์ ์ญ์ ํด์ผ ํฉ๋๋ค.- 9B9D7C0D2DCA53EA00C02045 /* .gitignore in Resources */,
๐งน Nitpick comments (9)
iosApp/suwiki/Assets.xcassets/Assets/GrayF6.colorset/Contents.json (1)
1-20: GrayF6 ์์ ์์ ์ ์ ํ์ธ ๋ฐ ์น์ธ์๋ก์ด ์์
GrayF6๊ฐ sRGB ์์(0.965, 0.965, 0.965) ๋ฐ alpha 1.0์ผ๋ก ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ๋์์ต๋๋ค.idiom์ดuniversal๋ก ์ง์ ๋์ด ๋ชจ๋ ๋๋ฐ์ด์ค์์ ์ผ๊ด๋๊ฒ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค. AppColor.grayF6 ๋๋ Color("GrayF6")๋ก ์ ์ ๋งคํ๋๋์ง ํ์ธํด์ฃผ์ธ์.
๋คํฌ ๋ชจ๋ ์ง์์ ์ํด ํ์์appearances์น์ ์ ์ถ๊ฐํด ๋ผ์ดํธ/๋คํฌ ๋ณํ์ ์ ์ํ๋ ๊ฒ์ ๊ณ ๋ คํด์ฃผ์ธ์.iosApp/suwiki/Assets.xcassets/Assets/Error.colorset/Contents.json (1)
1-20: Error ์์ ์์ ์ ์ ํ์ธ ๋ฐ ์น์ธ์์
Error๊ฐ sRGB(0.941, 0.361, 0.180) ๋ฐ alpha 1.0์ผ๋ก ์ ํํ๊ฒ ์ค์ ๋์์ต๋๋ค. ์ค๋ฅ๋ ๊ฒฝ๊ณ ์ํ ๊ฐ์กฐ์ฉ์ผ๋ก ์ง๊ด์ ์ธ ์ปฌ๋ฌ๊ฐ์ ๋๋ค. AppColor.error ๋๋ Color("Error")๋ก ์ ์ ๋งคํ๋๋์ง ํ์ธํ๊ณ , ๋คํฌ ๋ชจ๋ ๋ณํ์ด ํ์ํ๋ฉดappearancesํญ๋ชฉ ์ถ๊ฐ๋ฅผ ๊ฒํ ํด์ฃผ์ธ์.iosApp/suwiki/Assets.xcassets/Assets/Green10.colorset/Contents.json (1)
1-20: Green10 ์์ ์์ ์ ์ ํ์ธ ๋ฐ ์น์ธ์์
Green10์ด sRGB(0.918, 0.973, 0.925) ๋ฐ alpha 1.0์ผ๋ก ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ๋์์ต๋๋ค. ์ฑ๊ณต ์ํ๋ ๊ฐ์กฐ ์์์ ์ ์ ํ ํค์ ๋๋ค. AppColor.green10 ๋๋ Color("Green10") ๋งคํ์ ํ์ธํ๊ณ , ํ์ ์ ๋คํฌ ๋ชจ๋ variant๋ฅผappearances๋ก ์ถ๊ฐํด ์ฃผ์ธ์.iosApp/suwiki/Assets.xcassets/Assets/Orange100.colorset/Contents.json (1)
1-20: Orange100 ์์ ์์ ์ ์ ํ์ธ ๋ฐ ์น์ธ์์
Orange100์ด sRGB(0.992, 0.529, 0.231) ๋ฐ alpha 1.0์ผ๋ก ์ ํํ ์ค์ ๋์์ต๋๋ค. ์ฃผ์ ๋ฒํผ์ด๋ ๊ฐ์กฐ ์์์ ์ ํฉํ ์ปฌ๋ฌํค์ ๋๋ค. AppColor.orange100 ๋๋ Color("Orange100") ๋งคํ์ ๊ฒ์ฆํ๊ณ , ๋คํฌ ๋ชจ๋ ์ง์์ด ํ์ํ ๊ฒฝ์ฐappearances์ ๋คํฌ ๋ณํ์ ์ถ๊ฐํด ์ฃผ์ธ์.iosApp/suwiki/Assets.xcassets/Assets/Gray6A.colorset/Contents.json (1)
1-20: Gray6A ์์ ์์ ์ ์ ํ์ธ ๋ฐ ์น์ธ์์
Gray6A๊ฐ sRGB(0.416, 0.416, 0.416) ๋ฐ alpha 1.0์ผ๋ก ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ๋์์ต๋๋ค. ๋ฐฐ๊ฒฝ ๋๋ ํ ๋๋ฆฌ์ฉ์ผ๋ก ํ์ฉ ์ ๋๋น๋(contrast ratio)๊ฐ ๋์์ธยท์ ๊ทผ์ฑ ๊ฐ์ด๋๋ผ์ธ(์: WCAG AA/AAA)์ ๋ง์กฑํ๋์ง ๊ฒํ ํด์ฃผ์ธ์.
๋คํฌ ๋ชจ๋ variant๊ฐ ํ์ํ๋ค๋ฉดappearances์น์ ์ ์ถ๊ฐํด ์ฃผ์๊ณ , ๋๋น ๋น์จ์ ํ์ธํ ํ ํ์ ์ ์์ ์กฐ์ ์์ ์ ์งํํ๋ ๊ฒ์ ๊ถ์ฅ๋๋ฆฝ๋๋ค.iosApp/.gitignore (1)
1-102:.gitignoreํจํด ๊ฒํ
- iOS/Swift ๊ด๋ จ ๋ถํ์ ํ์ผ๋ค์ ์ ์ปค๋ฒํ๊ณ ์์ด ๊น๋ํฉ๋๋ค.
- Swift Package Manager(.build, Packages/, Package.resolved ๋ฑ) ํญ๋ชฉ์ด ์ฃผ์ ์ฒ๋ฆฌ๋์ด ์๋๋ฐ, ์ค์ ๋ก SPM์ ์ฌ์ฉํ๋ค๋ฉด ํด๋น ํจํด์ ํ์ฑํํด๋ ์ข์ต๋๋ค.
- ํ์์ ๋ฐ๋ผ
.swiftpm/,*.xcodeproj/xcuserdata/๊ฐ์ ์ถ๊ฐ ํจํด์ ๊ฒํ ํด๋ณด์ธ์.iosApp/suwiki/Presentation/Common/DesignSystem/AppColor.swift (1)
1-24: ์ปฌ๋ฌ ๋ค์์คํ์ด์ค ๊ตฌํ์ ์ ์
enum AppColor๋ก ๋ค์์คํ์ด์ค๋ง ์ ๊ณตํด ์ธ์คํด์คํ ๋ฐฉ์งํ ์ ์ด ์ข์ต๋๋ค.- ์์ ์นดํ๋ก๊ทธ์ ์ ์๋ ์์ ์ผ๊ด๋๊ฒ ์ฐธ์กฐํ ์ ์์ด ์ ์ง๋ณด์๊ฐ ์ฉ์ดํฉ๋๋ค.
์ ์ (์ต์ ): ๋ฒ๋ค ๋ช ์
๋ชจ๋ ๋ถ๋ฆฌ ์ ์ธ๋ถ ๋ฒ๋ค์์ ์์์ ๋ถ๋ฌ์ฌ ์ ์๋๋ก ๋ค์๊ณผ ๊ฐ์ดbundle:ํ๋ผ๋ฏธํฐ๋ฅผ ๋ช ์ํ ์ ์์ต๋๋ค.static let primary = Color("AppPrimary", bundle: .main)iosApp/suwiki/Presentation/Common/Fonts/Typography.swift (2)
10-34: ์ ์ญ ์์ ๋ช ๋ช ๊ท์น ๊ถ์ฅ์ฌํญ
let Typography๋ ํ์ ๊ณผ ์ ์ฌํ ์ด๋ฆ์ด๋ฏ๋ก ํผ๋๋ ์ ์์ต๋๋ค.- Swift API Design Guidelines์ ๋ฐ๋ผ ์ ์ญ ์์๋ lowerCamelCase(
let typography)๋ ๊ตฌ์ฒด์ ์ด๋ฆ(defaultTypography)์ผ๋ก ๋ณ๊ฒฝ์ ๊ณ ๋ คํด์ฃผ์ธ์.
37-61:SuwikiTypography๊ตฌ์กฐ์ฒด: ํ์ฅ์ฑ ํ์ธ
- ํค๋, ๋ณธ๋ฌธ, ์บก์ ์ ๋ชจ๋ ํฌํจํด ์ผ๊ด์ฑ ์๋ ์คํ์ผ์ ์ ๊ณตํ๋ ์ ์ด ์ข์ต๋๋ค.
- ํฅํ ์๋ก์ด ํ ์คํธ ๋ ๋ฒจ ์ถ๊ฐ ์ ํ๋กํผํฐ๊ฐ ๋ง์์ง ์ ์์ผ๋ฏ๋ก, ์์ฑ์ ํ๋ผ๋ฏธํฐ๊ฐ ๋ง์์ง๋ ๊ฒ์ ๋ฐฉ์งํ๊ณ ์ DSL ๋๋ ๋น๋ ํจํด ๋์ ์ ๊ณ ๋ คํด๋ณผ ์ ์์ต๋๋ค.
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
โ Files ignored due to path filters (2)
iosApp/suwiki/Presentation/Common/Fonts/NotoSansKR-Bold.ttfis excluded by!**/*.ttfiosApp/suwiki/Presentation/Common/Fonts/NotoSansKR-Light.ttfis excluded by!**/*.ttf
๐ Files selected for processing (29)
iosApp/.gitignore(1 hunks)iosApp/suwiki.xcodeproj/project.pbxproj(6 hunks)iosApp/suwiki.xcodeproj/xcuserdata/jinukeu.xcuserdatad/xcschemes/xcschememanagement.plist(0 hunks)iosApp/suwiki/Assets.xcassets/Assets/AppBlack.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/AppPrimary.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/AppWhite.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Blue10.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Blue100.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Blue30.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Blue5.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Error.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Gray6A.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Gray95.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/GrayCB.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/GrayDA.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/GrayF6.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/GrayFB.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Green10.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Green100.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Green30.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Orange10.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Orange100.colorset/Contents.json(1 hunks)iosApp/suwiki/Assets.xcassets/Assets/Orange30.colorset/Contents.json(1 hunks)iosApp/suwiki/ContentView.swift(1 hunks)iosApp/suwiki/Presentation/Common/DesignSystem/AppColor.swift(1 hunks)iosApp/suwiki/Presentation/Common/Fonts/Typography.swift(1 hunks)iosApp/suwiki/Presentation/Common/Theme/TypographyTheme.swift(1 hunks)iosApp/suwiki/suwikiApp.swift(1 hunks)
๐ค Files with no reviewable changes (1)
- iosApp/suwiki.xcodeproj/xcuserdata/jinukeu.xcuserdatad/xcschemes/xcschememanagement.plist
โฐ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build
๐ Additional comments (32)
iosApp/suwiki/Assets.xcassets/Assets/Contents.json (1)
1-6: Asset ์นดํ๋ก๊ทธ ๋ฉํ๋ฐ์ดํฐ ์ ์ ์ถ๊ฐ๋จ
Xcode ํ์ค ํ์์ผ๋ก ์์ฑ๋ JSON์ด๋ฉฐ,author์versionํ๋๊ฐ ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ๋์์ต๋๋ค. ์์ ์นดํ๋ก๊ทธ ๋ก๋ฉ ์ ๋ฌธ์ ์์ด ์๋ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/Gray95.colorset/Contents.json (1)
1-20: Gray95 ์์ ์์ฐ JSON ์ ํจ์ฑ ํ์ธ
sRGB์์ ์ปดํฌ๋ํธ์idiom,info์น์ ์ด Xcode ์์ฐ ํ์ค์ ๋ง๊ฒ ์์ฑ๋์์ต๋๋ค. ์์ ๊ฐ(0.584)์ด ์ ํํ๊ฒ ๋ฐ์๋์ด ๋์์ธ ์์คํ ๋ด์์ ์ผ๊ด๋AppColor.gray95๋งตํ์ด ๊ฐ๋ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/GrayDA.colorset/Contents.json (1)
1-20: GrayDA ์์ ์์ฐ JSON ์ ํจ์ฑ ํ์ธ
RGBA ๊ตฌ์ฑ์์(0.855)์idiom: universal์ค์ ์ด ์ ์ ํ๋ฉฐ,AppColor.grayDA๋ก์ ์ฐธ์กฐ ์ ์๋ํ ์์ ์ถ๋ ฅ์ด ๋ณด์ฅ๋ฉ๋๋ค. JSON ์คํค๋ง๋ ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ํ๊ณ ์์ต๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/Orange30.colorset/Contents.json (1)
1-20: Orange30 ์์ ์์ฐ JSON ์ ํจ์ฑ ํ์ธ
RGB(0.996, 0.859, 0.769) ๋ฐalpha: 1.0๊ฐ์ด ์ ํํ๋ฉฐ,idiom๊ณผinfo๊ฐ Xcode ์์ ๊ท๊ฒฉ์ ๋ถํฉํฉ๋๋ค.AppColor.orange30๋งคํ ์ ์ ํํ ์์ ๋ ๋๋ง์ด ๊ฐ๋ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/Orange10.colorset/Contents.json (1)
1-20: Orange10 ์์ ์์ฐ JSON ์ ํจ์ฑ ํ์ธ
sRGB ๊ตฌ์ฑ์์(red:1.0, green:0.953, blue:0.922)์author/versionํ๋๊ฐ ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ๋์์ต๋๋ค. ๋์์ธ ์์คํ ํตํฉ์ ๋ฌธ์ ์์ผ๋ฉฐ, SwiftUI ์ฝ๋์์ ๋ฐ๋ก ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/GrayCB.colorset/Contents.json (1)
1-20: ์์ ์์ ์ถ๊ฐ ์น์ธ!ํ์(GrayCB) ์์์ด ์ฑ๊ณต์ ์ผ๋ก ์ถ๊ฐ๋์์ต๋๋ค. RGB ๊ฐ (0.796, 0.796, 0.796)์ ์ค๊ฐ ํค์ ํ์์ผ๋ก ๋์์ธ ์์คํ ์ ์ ํฉํฉ๋๋ค.
iosApp/suwiki/Assets.xcassets/Assets/Blue30.colorset/Contents.json (1)
1-20: ์์ ์์ ์ถ๊ฐ ์น์ธ!ํ๋์(Blue30) ์์์ด ์ฑ๊ณต์ ์ผ๋ก ์ถ๊ฐ๋์์ต๋๋ค. RGB ๊ฐ (0.773, 0.792, 0.996)์ ๋ฐ์ ํ๋์ ๊ณ์ด๋ก, ๋์์ธ ์์คํ ์ ์ ํฉํฉ๋๋ค.
iosApp/suwiki/Assets.xcassets/Assets/Green100.colorset/Contents.json (1)
1-20: ์์ ์์ ์ถ๊ฐ ์น์ธ!๋ น์(Green100) ์์์ด ์ฑ๊ณต์ ์ผ๋ก ์ถ๊ฐ๋์์ต๋๋ค. RGB ๊ฐ (0.176, 0.725, 0.259)์ ์ ๋ช ํ ๋ น์์ผ๋ก ๋์์ธ ์์คํ ์ ์ ํฉํฉ๋๋ค.
iosApp/suwiki/Assets.xcassets/Assets/Blue10.colorset/Contents.json (1)
1-20: ์์ ์์ ์ถ๊ฐ ์น์ธ!ํ๋์(Blue10) ์์์ด ์ฑ๊ณต์ ์ผ๋ก ์ถ๊ฐ๋์์ต๋๋ค. RGB ๊ฐ (0.925, 0.929, 1.000)์ ๋งค์ฐ ์ฐํ ํ๋์์ผ๋ก ๋์์ธ ์์คํ ์ ๋ฐฐ๊ฒฝ ์์ ๋ฑ์ ์ ํฉํฉ๋๋ค.
iosApp/suwiki/suwikiApp.swift (1)
15-15: TypographyTheme ์ถ๊ฐ ํ์ธ ํ์
TypographyThemeํ๊ฒฝ ๊ฐ์ฒด๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์ถ๊ฐ๋์์ต๋๋ค. ๊ทธ๋ฌ๋TypographyThemeํด๋์ค์ ๋ํ import ๋ฌธ์ด ์๋ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค. ์ปดํ์ผ ์ค๋ฅ๋ฅผ ๋ฐฉ์งํ๊ธฐ ์ํด ๊ด๋ จ import ๋ฌธ์ ์ถ๊ฐํด ์ฃผ์ธ์.๋ค์๊ณผ ๊ฐ์ด import ๋ฌธ์ ์ถ๊ฐํ๋ ๊ฒ์ด ์ข์ต๋๋ค:
import SwiftUI +import ๋ชจ๋๋ช // TypographyTheme๊ฐ ์ ์๋ ๋ชจ๋iosApp/suwiki/Assets.xcassets/Assets/Blue100.colorset/Contents.json (1)
1-21: โBlue100โ ์์ ์์ ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ต๋๋ค.
- JSON ๊ตฌ์กฐ๊ฐ Xcode Asset ์นดํ๋ก๊ทธ ์ฌ์์ ๋ถํฉํฉ๋๋ค.
- RGB(0.239, 0.306, 0.984)์ alpha(1.000) ๊ฐ์ด ์๋ํ ๋์์ธ ํ๋ ํธ๋ฅผ ์ ํํ ๋ฐ์ํฉ๋๋ค.
idiom์ดuniversal๋ก ์ง์ ๋์ด ๋ชจ๋ ๋๋ฐ์ด์ค์์ ์ผ๊ด๋ ์ฌ์ฉ์ด ๊ฐ๋ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/Blue5.colorset/Contents.json (1)
1-21: โBlue5โ ์์ ์์ ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ต๋๋ค.
- JSON ๊ตฌ์กฐ์ ํค(
colors,color-space,components,idiom,info) ๋ฐฐ์น๊ฐ ์ ์ ํฉ๋๋ค.- RGB(0.961, 0.973, 1.000) ๋ฐ alpha(1.000)๋ก ๋์์ธ ์๋์ ๋ง๋ ์ฐํ ๋ธ๋ฃจํค์ ์ ํํํฉ๋๋ค.
- ๋ชจ๋ ๋๋ฐ์ด์ค์ ์ ์ฉ๋๋
universalidiom ์ค์ ์ด ์ผ๊ด์ฑ์ ๋ณด์ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/Green30.colorset/Contents.json (1)
1-21: โGreen30โ ์์ ์์ ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ต๋๋ค.
- Xcode Asset ์ฌ์์ ์ถฉ์กฑํ๋ JSON ๊ตฌ์กฐ๋ฅผ ๋ฐ๋ฅด๊ณ ์์ต๋๋ค.
- RGB(0.753, 0.918, 0.776) ๋ฐ alpha(1.000)์ด ์๋ํ ๋์์ธ ์์คํ ํค์ ๋ถํฉํฉ๋๋ค.
idiom: universal๋ก ์ง์ ํ์ฌ ๋ค์ํ ๋๋ฐ์ด์ค์์ ์ผ๊ด๋ UI ์ ๊ณต์ด ๊ฐ๋ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/AppWhite.colorset/Contents.json (1)
1-21: โAppWhiteโ ์์ ์์ ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ต๋๋ค.
- JSON ํ์ผ์ด Xcode Asset ์นดํ๋ก๊ทธ ๊ตฌ์กฐ๋ฅผ ์ค์ํ๊ณ ์์ต๋๋ค.
- RGB(1.000, 1.000, 1.000) ๋ฐ alpha(1.000) ๊ฐ์ผ๋ก ์๋ฐฑ์์ ์ ํํ ํํํฉ๋๋ค.
idiom: universal์ค์ ์ผ๋ก ๋ชจ๋ ํ๊ฒฝ์์ ์ผ๊ด๋ ์ฌ์ฉ์ด ๊ฐ๋ฅํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/AppBlack.colorset/Contents.json (1)
1-21: โAppBlackโ ์์ ์์ ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ถ๊ฐ๋์์ต๋๋ค.
- JSON ๊ตฌ์กฐ์ ํค ์ด๋ฆ์ด Xcode ๊ธฐ์ค์ ๋ง๊ฒ ์ ์๋์ด ์์ต๋๋ค.
- RGB(0.133, 0.133, 0.133) ๋ฐ alpha(1.000) ๊ฐ์ด ํ์ค ๋ธ๋ ํค์ผ๋ก ์ ์ ํ ์ค์ ๋์์ต๋๋ค.
universalidiom ์ง์ ์ผ๋ก ๋ค์ํ ๊ธฐ๊ธฐ ๋ฐ ํ๋ฉด์์ ์ผ๊ด๋ ๋น์ฃผ์ผ์ ์ ๊ณตํฉ๋๋ค.iosApp/suwiki/Assets.xcassets/Assets/AppPrimary.colorset/Contents.json (1)
1-20: ์๋ก์ด ์ฑ ๊ธฐ๋ณธ ์์ ์์ฐ์ด ์ ์ ์๋์์ต๋๋ค.๋์์ธ ์์คํ ๊ตฌ์ถ์ ์ํ ๊ธฐ๋ณธ ์์(primary color)์ด RGBA(0.204, 0.424, 0.992, 1.0)๋ก ์ ์ ํ๊ฒ ์ ์๋์์ต๋๋ค. ์ด ์์์ ์ฑ ์ ์ฒด์์ ์ผ๊ด๋ ์๊ฐ์ ์์ด๋ดํฐํฐ๋ฅผ ์ ๊ณตํ๋ ๋ฐ ์ค์ํ ์ญํ ์ ํ ๊ฒ์ ๋๋ค.
iosApp/suwiki/Assets.xcassets/Assets/GrayFB.colorset/Contents.json (1)
1-20: GrayFB ์์ ์์ฐ์ด ์ ์ ํ๊ฒ ์ค์ ๋์์ต๋๋ค.๋ฐ์ ํ์ ์์(RGB: 0.984, 0.984, 0.984)์ด ์ ์ ํ๊ฒ ์ ์๋์์ต๋๋ค. ์ด ์์์ ๋ฐฐ๊ฒฝ์ด๋ ๊ตฌ๋ถ์ ๋ฑ์ ์ฌ์ฉํ๊ธฐ์ ์ ํฉํ ๋งค์ฐ ๋ฐ์ ํ์ ํค์ ๋๋ค.
iosApp/suwiki/ContentView.swift (3)
12-13: ๋์์ธ ์์คํ ์ ์ฉ์ ์ํ EnvironmentObject ์ถ๊ฐ๊ฐ ์ ์ ํฉ๋๋ค.TypographyTheme์ ํ๊ฒฝ ๊ฐ์ฒด๋ก ์ ์ธํ์ฌ ๋ทฐ ์ ์ฒด์์ ์ผ๊ด๋ ํ์ดํฌ๊ทธ๋ํผ ์คํ์ผ์ ์ ์ฉํ ์ ์๋๋ก ํ ์ ๊ทผ์ด ์ข์ต๋๋ค.
20-21: ๋์์ธ ์์คํ ์์๊ฐ ์ ์ ํ ์ ์ฉ๋์์ต๋๋ค.AppColor.grayDA์ typography.caption1์ ์ ์ฉํ์ฌ ๋์์ธ ์์คํ ์ ์ผ๊ด๋๊ฒ ํ์ฉํ๋ ๋ฐฉ์์ด ์ข์ต๋๋ค. ์ด๋ ํฅํ ์ ์ง๋ณด์์ ๋์์ธ ์ผ๊ด์ฑ์ ๋์์ด ๋ ๊ฒ์ ๋๋ค.
29-29: Preview์ EnvironmentObject ์ฃผ์ ์ด ์ ๋์์ต๋๋ค.Preview์ TypographyTheme์ ํ๊ฒฝ ๊ฐ์ฒด๋ก ์ฃผ์ ํจ์ผ๋ก์จ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ํ๋ฉด์์๋ ์ค์ ํ๊ฒฝ๊ณผ ๋์ผํ๊ฒ ํ์ดํฌ๊ทธ๋ํผ๊ฐ ํ์๋๋๋ก ํ ์ ์ด ์ข์ต๋๋ค.
iosApp/suwiki/Presentation/Common/Theme/TypographyTheme.swift (4)
9-10: ObservableObject ํจํด ์ ์ฉ์ด ์ ์ ํฉ๋๋ค.TypographyTheme ํด๋์ค๋ฅผ ObservableObject๋ก ๊ตฌํํ์ฌ SwiftUI์ ํ๊ฒฝ ๊ฐ์ฒด๋ก ์ฌ์ฉํ ์ ์๊ฒ ํ ๊ฒ์ด ์ ์ ํฉ๋๋ค. final ํค์๋๋ฅผ ์ฌ์ฉํ์ฌ ์์์ ๋ฐฉ์งํ ๊ฒ๋ ์ข์ ์ ๊ทผ์ ๋๋ค.
11-17: header ํ์ดํฌ๊ทธ๋ํผ ์คํ์ผ ์ ์๊ฐ ์ฒด๊ณ์ ์ผ๋ก ๊ตฌ์ฑ๋์์ต๋๋ค.header1๋ถํฐ header7๊น์ง ๋ค์ํ ํค๋ ์คํ์ผ์ Typography ํด๋์ค์ ์ ์ ๋ฉค๋ฒ๋ฅผ ์ฐธ์กฐํ์ฌ ์ ์ํ ๊ฒ์ด ์ฒด๊ณ์ ์ด๊ณ ์ผ๊ด์ฑ ์์ต๋๋ค.
19-26: body ํ์ดํฌ๊ทธ๋ํผ ์คํ์ผ ์ ์๊ฐ ์ ๊ตฌ์ฑ๋์์ต๋๋ค.body1๋ถํฐ body7๊น์ง ๋ณธ๋ฌธ ํ ์คํธ๋ฅผ ์ํ ๋ค์ํ ์คํ์ผ์ ์ ๊ณตํ์ฌ ์ ์ฐํ ๋์์ธ ์์คํ ์ ๊ตฌ์ถํ ์ ์ด ์ข์ต๋๋ค.
27-34: caption ํ์ดํฌ๊ทธ๋ํผ ์คํ์ผ ์ ์๊ฐ ์ฒด๊ณ์ ์ผ๋ก ๊ตฌํ๋์์ต๋๋ค.caption1๋ถํฐ caption7๊น์ง ๋ถ๊ฐ ํ ์คํธ๋ฅผ ์ํ ์คํ์ผ์ ์ผ๊ด๋๊ฒ ์ ์ํ์ฌ ๋์์ธ ์์คํ ์ ์์ฑ๋๋ฅผ ๋์์ต๋๋ค. ContentView์์ ์ด๋ฏธ caption1์ ํ์ฉํ๊ณ ์์ด ์ค์ ์ ์ฉ ์ฌ๋ก๋ ํ์ธ๋ฉ๋๋ค.
iosApp/suwiki.xcodeproj/project.pbxproj (4)
34-34: ํ์ผ ์ฐธ์กฐ ๊ฒฝ๋ก ๊ฒ์ฆ ์์ฒญ
.gitignore๊ฐ PBXFileReference๋ก ๊ทธ๋ฃน์ ์ถ๊ฐ๋์๋๋ฐsourceTree = "<group>"๊ธฐ์ค์ผ๋ก ์ค์ ํ์ผ ๊ฒฝ๋ก๊ฐ ์ฌ๋ฐ๋ฅด๊ฒ ๋งคํ๋๋์ง ํ์ธํด์ผ ํฉ๋๋ค. Xcode์์ ๋ถ์์ ํ์ผ ์ฐธ์กฐ(Red file)๊ฐ ์๊ธฐ์ง ์๋๋ก ํ์ธํด์ฃผ์ธ์.
37-45:PBXFileSystemSynchronizedBuildFileExceptionSet๋์ ํ์ธ ํ์
Info.plist๋๊ธฐํ ์ ์ธ ์์ธ ์ ์ ์๋ก ์ถ๊ฐํ์ต๋๋ค. ๋น๋ ๋ฐ ํ์ผ ์์คํ ๋๊ธฐํ ๋์์ ์ํฅ์ด ์๋์ง, ํนํ Xcode์ Incremental Build๋ Asset Catalog ๋๊ธฐํ์ ๋ฌธ์ ๊ฐ ์๋์ง ํ์ธํด์ฃผ์ธ์.
93-101: ๋ฉ์ธ ๊ทธ๋ฃน์.gitignore์ถ๊ฐ ๊ฒํ ํ์
๋ฉ์ธ PBXGroup children์.gitignore๋ฅผ ํฌํจ์์ผฐ์ต๋๋ค. ํ๋ก์ ํธ ํ์๊ธฐ์์ ์ฌ๋ฐ๋ฅธ ์์น์ ๋ ธ์ถ๋๋์ง, ํ์ ๊ทธ๋ฃน ๊ตฌ์กฐ ์/์๋์ ํผ๋์ ์ฃผ์ง๋ ์๋์ง ํ์ธํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.
445-452: INFOPLIST_FILE ๋ฐ IPHONEOS_DEPLOYMENT_TARGET ์ค์ ๋ณ๊ฒฝ ํ์ธ
INFOPLIST_FILE์ด ๋ช ์์ ์ผ๋กsuwiki/Info.plist๋ก ์ค์ ๋ ๊ฒ์ ์ข์ต๋๋ค.IPHONEOS_DEPLOYMENT_TARGET์ด 18.4์์ 15.6์ผ๋ก ํํฅ๋ ๊ฒ์ ๊ตฌ๋ฒ์ ๊ธฐ๊ธฐ ํธํ์ฑ์ ์ ๋ฆฌํฉ๋๋ค.๋ค๋ง ์ด ๋ณ๊ฒฝ์ด iOS 15.6 ์ดํ ํ๊ฒฝ์์์ ๋ฐํ์ ์ด์ ๋๋ iOS 18.4 ์ต์ API ์ฌ์ฉ์ ์ํฅ์ ์ฃผ์ง ์๋์ง ์ ์ฒด ํ ์คํธ๋ฅผ ํตํด ๊ฒ์ฆํด์ฃผ์ธ์.
Also applies to: 476-483
iosApp/suwiki/Presentation/Common/Fonts/Typography.swift (4)
63-67:TextStyle๊ตฌ์กฐ์ฒด ์ ์ ์ ์
font,lineSpacing,color๋ฅผ ํ๊ณณ์ ๋ฌถ์ด ์ฌ์ฌ์ฉ์ฑ์ ๋์์ต๋๋ค.- ํ์ ์ ์ถ๊ฐ ์์ฑ(e.g.
letterSpacing)์ ํ์ฅํ๊ธฐ์๋ ์ ์ฐํฉ๋๋ค.
69-77:TypographyModifier๋ฐViewextension
ViewModifier๋ก ์คํ์ผ ์ ์ฉ์ ์บก์ํํ ์ ์ด ์ฐ์ํฉ๋๋ค..typography(_:)๋ฉ์๋๋ฅผ ํตํด ๊ฐ๋ ์ฑ ๋์ ๋ทฐ ๋น๋ฉ์ด ๊ฐ๋ฅํฉ๋๋ค.
80-84:Viewextension ๋ค์ด๋ฐ
typography(_:)๋ ๋์ฌํ ๋ฉ์๋ ์ด๋ฆ ๊ฐ์ด๋๋ฅผ ๋ฐ๋ฅด๊ณ ์์ต๋๋ค. ์ข์ต๋๋ค.
87-98:Font.notoSans๊ตฌํ ํ์ธ
switch๋ก weight๋ณ ํฐํธ ํ์ผ๋ช ์ ๋งคํํ ๋ฐฉ์์ด ๋ช ํํฉ๋๋ค..default์ผ์ด์ค์์ Regular๋ก ํด๋ฐฑ ์ฒ๋ฆฌํ ์ ๋ ์์ ํฉ๋๋ค.
| /* Begin PBXBuildFile section */ | ||
| 9B9D7C0D2DCA53EA00C02045 /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = 9B9D7C0C2DCA53E300C02045 /* .gitignore */; }; | ||
| /* End PBXBuildFile section */ |
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.
.gitignore ํ์ผ์ด ๋ฆฌ์์ค๋ก ํฌํจ๋ ๋ฌธ์
ํ์ฌ PBXBuildFile ์น์
์ .gitignore๊ฐ ๋ฆฌ์์ค๋ก ๋ฑ๋ก๋์ด ์์ด ์ฑ ๋น๋ ์ ๋ฒ๋ค์ ์๋์น ์๊ฒ ํฌํจ๋ฉ๋๋ค. ์ผ๋ฐ์ ์ผ๋ก .gitignore๋ ๋ฒ์ ๊ด๋ฆฌ์ฉ ํ์ผ๋ก ์ฑ ๋ฆฌ์์ค ๋ฒ๋ค์ ํฌํจ๋์ง ์์์ผ ํฉ๋๋ค.
๋ค์๊ณผ ๊ฐ์ diff๋ฅผ ์ ์ฉํด ๊ด๋ จ PBXBuildFile ํญ๋ชฉ์ ์ ๊ฑฐํด์ฃผ์ธ์:
- /* Begin PBXBuildFile section */
- 9B9D7C0D2DCA53EA00C02045 /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = 9B9D7C0C2DCA53E300C02045 /* .gitignore */; };
- /* End PBXBuildFile section */Committable suggestion skipped: line range outside the PR's diff.
Renamed `Typography.swift` to `defaultTypography.swift` and the `Typography` constant within it to `defaultTypography`. This change clarifies that this is the default set of typography styles and allows for the potential introduction of other typography sets in the future. Updated `TypographyTheme.swift` to reference the new `defaultTypography` constant.
BEEEAM-J
left a comment
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.
ios ๋์์ธ ์์คํ ๊ตฌ์ถ ํ์ธํ์ต๋๋ค~
๊ณ ์ํ์ จ์ต๋๋ค!
๐ PR ์์ฝ
๐ฑ ์์ ํ ๋ด์ฉ
๐ฑ PR ํฌ์ธํธ
๐ธ ์คํฌ๋ฆฐ์ท
๐ฎ ๊ด๋ จ ์ด์
Summary by CodeRabbit
์ ๊ท ๊ธฐ๋ฅ
ํ๊ฒฝ ์ค์
๊ธฐํ