-
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/onborading #96
Changes from all commits
b86cbda
658fa78
3f58027
4e81595
dd2f6dc
a07e05f
22425fb
3115b69
206722c
c8de841
1b0bebf
c3c89ab
9df2c66
86803fb
1b3d9ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
// | ||
|
||
import SwiftUI | ||
import ADS | ||
|
||
struct AlimoLogo: View { | ||
|
||
|
@@ -15,11 +16,11 @@ struct AlimoLogo: View { | |
var body: some View { | ||
HStack(alignment: .bottom, spacing: 0) { | ||
Text(appName.uppercased()) | ||
.foregroundStyle(type.textColor) | ||
.alimoColor(AlimoColor.Label.normal) | ||
.font(Font(AppFontFamily.Pretendard.bold.font(size: type.fontSize))) | ||
if type.hasDot { | ||
Circle() | ||
.foregroundStyle(type.dotColor) | ||
.alimoColor(AlimoColor.Color.primary60) | ||
.frame(width: 8, height: 8) | ||
.padding(.bottom, 13) | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 패치에서 몇 가지 주요 사항을 강조할 수 있습니다:
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
// | ||
|
||
import SwiftUI | ||
import ADS | ||
|
||
enum AlimoLogoType { | ||
case white | ||
|
@@ -15,17 +16,17 @@ enum AlimoLogoType { | |
|
||
var textColor: Color { | ||
return switch self { | ||
case .white: .black | ||
case .yellow: .black | ||
case .gray: .gray300 | ||
case .white: AlimoPallete.shared.Neutral00 | ||
case .yellow: AlimoPallete.shared.Neutral100 | ||
case .gray: AlimoPallete.shared.Neutral30 | ||
} | ||
} | ||
|
||
var dotColor: Color { | ||
return switch self { | ||
case .white: .white | ||
case .yellow: .main500 | ||
case .gray: .gray300 | ||
case .white: AlimoPallete.shared.Neutral00 | ||
case .yellow: AlimoPallete.shared.Neutral100 | ||
case .gray: AlimoPallete.shared.Neutral30 | ||
} | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 코드 리뷰:
개선 제안:
전반적으로 코드는 깔끔하며 개별 case별 색상 지정을 명확하게 해주는 enum 구조체를 사용하여 관리가 용이합니다. 만약 ADS 모듈이 외부 종속성이라면 이에 대한 처리 및 의존성 관리도 필요합니다. |
||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ struct UITestView: View { | |
Text("Color Test") | ||
} | ||
NavigationLink { | ||
TextTestView() | ||
// TextTestView() | ||
} label: { | ||
Text("Text Test") | ||
} | ||
|
@@ -33,7 +33,7 @@ struct UITestView: View { | |
Text("Logo Test") | ||
} | ||
NavigationLink { | ||
TextFieldTest() | ||
// TextFieldTest() | ||
} label: { | ||
Text("Text Field Test") | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 패치를 간단한 코드 리뷰해 드리겠습니다.
|
||
|
This file was deleted.
This file was deleted.
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.
이 코드 패치를 간단히 검토해 보겠습니다.
위험 요소:
Pretendard.register()
는init()
내에서 호출됩니다. 이는 앱 초기화 시간에 작업을 수행할 수 있지만, 그 기능 및 side effects에 따라 잠재적인 문제가 발생할 수 있습니다.개선 제안:
Pretendard.register()
를 호출하는 위치가 적절한지 다시 고려하십시오. 필요한 경우 다른 곳에서 더 적절한 시점에 호출하는 것이 좋을 수 있습니다.개선 사항은 아직 오류나 위험이 없다고 말할 수 있지만, 코드의 유지보수성과 확장 가능성을 고려하여 주세요.