mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-09 08:49:36 +00:00
4189a59cf6
* Initial iOS 17 + Observable migration * More Observation * More observation * Checkpoint * Checkpoint * Bump version to 1.8.0 * SwiftFormat * Fix home timeline switch on login * Fix sidebar routerPath * Fixes on detail view * Remove print changes * Simply detail view * More opt * Migrate DisplaySettingsLocalValues * Better post detail transition * Status detail animation finally right * Cleanup
31 lines
659 B
Swift
31 lines
659 B
Swift
import Env
|
|
import Models
|
|
import SwiftUI
|
|
|
|
public struct TagRowView: View {
|
|
@Environment(RouterPath.self) private var routerPath
|
|
|
|
let tag: Tag
|
|
|
|
public init(tag: Tag) {
|
|
self.tag = tag
|
|
}
|
|
|
|
public var body: some View {
|
|
HStack {
|
|
VStack(alignment: .leading) {
|
|
Text("#\(tag.name)")
|
|
.font(.scaledHeadline)
|
|
Text("design.tag.n-posts-from-n-participants \(tag.totalUses) \(tag.totalAccounts)")
|
|
.font(.scaledFootnote)
|
|
.foregroundColor(.gray)
|
|
}
|
|
Spacer()
|
|
}
|
|
.contentShape(Rectangle())
|
|
.onTapGesture {
|
|
routerPath.navigate(to: .hashTag(tag: tag.name, account: nil))
|
|
}
|
|
}
|
|
}
|