-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Feat/#90] profile refactoring UI #99
Conversation
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.
고생하셨습니다. 오늘 온라인 회의때 별 이상없으면 전부다 머지시키는걸로 해요 !
return SharedDesignSystemAsset.Images.crewRankingUpperBody.swiftUIImage | ||
|
||
case .lowerBody: | ||
return SharedDesignSystemAsset.Images.crewRankingLowerBody.swiftUIImage | ||
|
||
case .lastPlace: | ||
return SharedDesignSystemAsset.Images.crewRankingLastPlace.swiftUIImage | ||
|
||
case .workoutCumulativeTime: | ||
return SharedDesignSystemAsset.Images.crewRankingWorkoutCumulativeTime.swiftUIImage |
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.
p1;
SharedDesignSystem이라면, PumpingImages 로 접근 가능합니다 !
public extension Image { | ||
static let avatar = SharedDesignSystemAsset.Images.avatar.swiftUIImage | ||
static let avatarHead = SharedDesignSystemAsset.Images.avatarHead.swiftUIImage | ||
static let arrow = SharedDesignSystemAsset.Images.arrow.swiftUIImage | ||
static let arrowForPercentage = SharedDesignSystemAsset.Images.arrowForPercentage.swiftUIImage | ||
static let boy = SharedDesignSystemAsset.Images.boy.swiftUIImage | ||
static let dropdown = SharedDesignSystemAsset.Images.dropdown.swiftUIImage |
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.
p5;
저희 이렇게 말고 PumpingImages로 접근해서 사용하는거 어떨까요 ? cc. @parkhj0423
일일이 추가하는 방식을 피하고 싶습니다 !
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.
좋아요 좋습니다
public struct CrewRankingCellView: View { | ||
public let store: StoreOf<CrewRankingCellStore> | ||
|
||
public init(store: StoreOf<CrewRankingCellStore>) { | ||
self.store = store | ||
} | ||
|
||
public var body: some View { | ||
WithViewStore(self.store, observe: { $0 }) { viewStore in | ||
VStack { | ||
Spacer() | ||
|
||
CrewRankingType(rawValue: viewStore.title)?.backgroundImage | ||
.resizable() | ||
.frame(height: 180) | ||
.offset(y: -40) | ||
.overlay(content: { | ||
VStack(alignment: .leading) { | ||
rankingHeaderView(viewStore: viewStore) |
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.
p5;
당장 수정사항은 아니지만, cell은 이제 design system이 아니라 feature에 있어야 합니다. 자세한 사항은 #95 에서 확인가능합니다. 천천히 리펙토링 해나가야할 부분이어서 미리 인지하고 있으면 도움 될것같아서 리뷰합니다 !
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.
ㅋㅋㅋㅋ 이거 이미지 넣는거 맞을까요 임시로 그린거같은데 ㅋㅋㅋㅋㅋㅋㅋ
PR 요약
📌 변경 사항
✅ PR check list
Linked Issue
close #