mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-15 03:30:35 +00:00
30 lines
658 B
Swift
30 lines
658 B
Swift
import DesignSystem
|
|
import Models
|
|
import StatusKit
|
|
import SwiftUI
|
|
|
|
public struct CardsListView: View {
|
|
@Environment(Theme.self) private var theme
|
|
|
|
let cards: [Card]
|
|
|
|
public init(cards: [Card]) {
|
|
self.cards = cards
|
|
}
|
|
|
|
public var body: some View {
|
|
List {
|
|
ForEach(cards) { card in
|
|
StatusRowCardView(card: card)
|
|
.listRowBackground(theme.primaryBackgroundColor)
|
|
.padding(.vertical, 8)
|
|
}
|
|
}
|
|
.scrollContentBackground(.hidden)
|
|
.background(theme.primaryBackgroundColor)
|
|
.listStyle(.plain)
|
|
.navigationTitle("explore.section.trending.links")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
}
|
|
}
|