콘텐츠 플레이어
- 현재 재생중인 콘텐츠 아이템 배경 추가
This commit is contained in:
@@ -55,7 +55,17 @@ struct ContentPlayerView: View {
|
||||
ScrollView(.vertical) {
|
||||
LazyVStack(alignment: .leading, spacing: 0) {
|
||||
ForEach(0..<playerManager.playlist.count, id: \.self) {
|
||||
PlaylistContentItemView(item: playerManager.playlist[$0])
|
||||
let item = playerManager.playlist[$0]
|
||||
PlaylistContentItemView(item: item)
|
||||
.padding(13.3)
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(
|
||||
Color.button
|
||||
.opacity(
|
||||
item.id == playerManager.id ? 0.2 : 0
|
||||
)
|
||||
)
|
||||
.cornerRadius(6.7)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user