mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 19:51:08 +00:00
Fix tag condition
This commit is contained in:
parent
947a684ce3
commit
4a09989160
1 changed files with 7 additions and 8 deletions
|
@ -7,14 +7,13 @@ struct StatusRowTagView: View {
|
||||||
let viewModel: StatusRowViewModel
|
let viewModel: StatusRowViewModel
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Group {
|
if let tag = viewModel.finalStatus.content.links.first(where: { link in
|
||||||
if let tag = viewModel.finalStatus.content.links.first(where: { $0.type == .hashtag}),
|
link.type == .hashtag && currentAccount.tags.contains(where: { $0.name.lowercased() == link.title.lowercased() })
|
||||||
currentAccount.tags.contains(where: { $0.name.lowercased() == tag.title.lowercased() }) {
|
}) {
|
||||||
Text("#\(tag.title)")
|
Text("#\(tag.title)")
|
||||||
}
|
|
||||||
}
|
|
||||||
.font(.scaledFootnote)
|
.font(.scaledFootnote)
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
.fontWeight(.semibold)
|
.fontWeight(.semibold)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue