Skip to content

Commit 416976e

Browse files
committed
fix: 공통 컴포넌트 CoinView 사용
1 parent f30f46e commit 416976e

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

AIProject/iCo/Features/Dashboard/View/TopCoinListView.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,8 @@ struct TopCoinListSection: View {
100100
.foregroundColor(.iCoAccent)
101101
.padding(.trailing, 16)
102102

103-
CachedAsyncImage(resource: .symbol(coin.coinSymbol)) {
104-
Text(String(coin.coinSymbol.prefix(1)))
105-
.font(.ico17Sb)
106-
.foregroundStyle(.iCoAccent)
107-
.frame(maxWidth: .infinity, maxHeight: .infinity)
108-
.background(.iCoBackgroundAccent)
109-
.overlay(
110-
Circle().strokeBorder(.defaultGradient, lineWidth: 0.5)
111-
)
112-
}
113-
.frame(width: 40, height: 40)
114-
.clipShape(Circle())
115-
.padding(.trailing, 8)
103+
CoinView(symbol: coin.coinSymbol, size: 40)
104+
.padding(.trailing, 8)
116105

117106
VStack(alignment: .leading, spacing: 8) {
118107
Text(viewModel.koreanName(for: coin.id))

0 commit comments

Comments
 (0)