mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 13:28:50 +01:00
Remove the double # in quick access pills
This commit is contained in:
parent
47436daaf2
commit
f235ebb720
@ -42,9 +42,16 @@ struct TimelineQuickAccessPills: View {
|
|||||||
Button {
|
Button {
|
||||||
timeline = filter
|
timeline = filter
|
||||||
} label: {
|
} label: {
|
||||||
|
switch filter {
|
||||||
|
case .hashtag:
|
||||||
|
Label(filter.title.replacingOccurrences(of: "#", with: ""),
|
||||||
|
systemImage: filter.iconName())
|
||||||
|
.font(.callout)
|
||||||
|
default:
|
||||||
Label(filter.localizedTitle(), systemImage: filter.iconName())
|
Label(filter.localizedTitle(), systemImage: filter.iconName())
|
||||||
.font(.callout)
|
.font(.callout)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.transition(.push(from: .leading).combined(with: .opacity))
|
.transition(.push(from: .leading).combined(with: .opacity))
|
||||||
.onDrag {
|
.onDrag {
|
||||||
draggedFilter = filter
|
draggedFilter = filter
|
||||||
|
Loading…
Reference in New Issue
Block a user