Skip to content

Commit

Permalink
[FIx]#25 - TeasingView index 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wonniiii committed Sep 25, 2023
1 parent 9cb2670 commit 4f54003
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Keyneez-iOS-Release/View/Home/TeasingTabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@ struct TeasingTabView: View {
}

HStack {
ForEach(viewModel.recommendCardList, id: \.contentPk) { content in
ForEach(0..<viewModel.recommendCardList.count, id: \.self) { idx in
Circle()
.frame(width: 8)
.foregroundColor( content.contentPk == selectedTab ? .primary : .secondary.opacity(0.5))
.onTapGesture {
selectedTab = content.contentPk
}
.foregroundColor( idx == selectedTab ? .primary : .secondary.opacity(0.5))
}
}
}
Expand Down

0 comments on commit 4f54003

Please sign in to comment.