fix(character): 추천 캐릭터가 터치 액션이 실행 되지 않는 버그 수정
This commit is contained in:
@@ -97,12 +97,14 @@ struct CharacterView: View {
|
|||||||
spacing: gridSpacing
|
spacing: gridSpacing
|
||||||
) {
|
) {
|
||||||
ForEach(viewModel.recommendCharacters.indices, id: \.self) { idx in
|
ForEach(viewModel.recommendCharacters.indices, id: \.self) { idx in
|
||||||
|
let character = viewModel.recommendCharacters[idx]
|
||||||
CharacterItemView(
|
CharacterItemView(
|
||||||
character: viewModel.recommendCharacters[idx],
|
character: character,
|
||||||
size: width,
|
size: width,
|
||||||
rank: idx + 1,
|
rank: idx + 1,
|
||||||
isShowRank: false
|
isShowRank: false
|
||||||
)
|
)
|
||||||
|
.onTapGesture { onSelectCharacter(character.characterId) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, horizontalPadding)
|
.padding(.horizontal, horizontalPadding)
|
||||||
|
|||||||
Reference in New Issue
Block a user