mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-16 04:06:36 +00:00
Remove the double # in quick access pills
This commit is contained in:
parent
47436daaf2
commit
f235ebb720
1 changed files with 9 additions and 2 deletions
|
@ -42,8 +42,15 @@ struct TimelineQuickAccessPills: View {
|
|||
Button {
|
||||
timeline = filter
|
||||
} label: {
|
||||
Label(filter.localizedTitle(), systemImage: filter.iconName())
|
||||
.font(.callout)
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue