IceCubesApp/Packages/Explore/Sources/Explore/TagsListView.swift
2023-09-18 21:03:52 +02:00

29 lines
622 B
Swift

import DesignSystem
import Models
import SwiftUI
public struct TagsListView: View {
@Environment(Theme.self) private var theme
let tags: [Tag]
public init(tags: [Tag]) {
self.tags = tags
}
public var body: some View {
List {
ForEach(tags) { tag in
TagRowView(tag: tag)
.listRowBackground(theme.primaryBackgroundColor)
.padding(.vertical, 4)
}
}
.scrollContentBackground(.hidden)
.background(theme.primaryBackgroundColor)
.listStyle(.plain)
.navigationTitle("explore.section.trending.tags")
.navigationBarTitleDisplayMode(.inline)
}
}