Skip to content

Commit 1ccaaaf

Browse files
authored
Merge pull request #680 from ESTiOSAI/fix/dashboardTopCoin-HJB
CoinView 공통 컴포넌트 사용
2 parents f468648 + 416976e commit 1ccaaaf

2 files changed

Lines changed: 3 additions & 14 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))

AIProject/iCo/Features/Dashboard/ViewModel/TopCoinListViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ final class TopCoinListViewModel: ObservableObject {
6060
let targetIDs = Array(Set(topVolumeIDs + topRateIDs))
6161

6262
guard !Task.isCancelled else { return }
63-
63+
try? await Task.sleep(for: .seconds(2))
6464
await withTaskGroup(of: Void.self) { group in
6565
for id in targetIDs {
6666
group.addTask {

0 commit comments

Comments
 (0)