Skip to content

Commit

Permalink
Refactor FavoritesView to comment out unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelduarte077 committed Oct 12, 2024
1 parent 1956c63 commit ae8a65d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Binary file not shown.
22 changes: 11 additions & 11 deletions ShazamLyrics/Views/Favorites/FavoritesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ struct FavoritesView: View {

var body: some View {
ScrollView {
VStack(spacing: 10) {
ForEach(0 ..< 10) { item in
CardView(item: item, isSelected: selectedItem == item)
.onTapGesture {
withAnimation(.easeInOut) {
selectedItem = selectedItem == item ? nil : item
}
}
}
}
.navigationTitle("List of Lyrics")
// VStack(spacing: 10) {
// ForEach(0 ..< 10) { item in
//// CardView(item: item, isSelected: selectedItem == item)
//// .onTapGesture {
//// withAnimation(.easeInOut) {
//// selectedItem = selectedItem == item ? nil : item
//// }
//// }
// }
// }
// .navigationTitle("List of Lyrics")
}

}
Expand Down

0 comments on commit ae8a65d

Please sign in to comment.