Remove the double # in quick access pills

This commit is contained in:
Thomas Ricouard 2024-01-01 21:29:12 +01:00
parent 47436daaf2
commit f235ebb720

View File

@ -42,9 +42,16 @@ struct TimelineQuickAccessPills: View {
Button {
timeline = filter
} label: {
switch filter {
case .hashtag:
Label(filter.title.replacingOccurrences(of: "#", with: ""),
systemImage: filter.iconName())
.font(.callout)
default:
Label(filter.localizedTitle(), systemImage: filter.iconName())
.font(.callout)
}
}
.transition(.push(from: .leading).combined(with: .opacity))
.onDrag {
draggedFilter = filter