File tree Expand file tree Collapse file tree
AIProject/iCo/Features/Dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff 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) )
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments