Remove the double # in quick access pills
This commit is contained in:
parent
47436daaf2
commit
f235ebb720
|
@ -42,8 +42,15 @@ struct TimelineQuickAccessPills: View {
|
||||||
Button {
|
Button {
|
||||||
timeline = filter
|
timeline = filter
|
||||||
} label: {
|
} label: {
|
||||||
Label(filter.localizedTitle(), systemImage: filter.iconName())
|
switch filter {
|
||||||
.font(.callout)
|
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))
|
.transition(.push(from: .leading).combined(with: .opacity))
|
||||||
.onDrag {
|
.onDrag {
|
||||||
|
|
Loading…
Reference in New Issue