mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 00:11:00 +00:00
Capsule design for pills
This commit is contained in:
parent
9fbd0a6a2f
commit
f0c91784d0
1 changed files with 3 additions and 3 deletions
|
@ -66,15 +66,12 @@ struct TimelineQuickAccessPills: View {
|
|||
case .hashtag:
|
||||
Label(filter.title.replacingOccurrences(of: "#", with: ""),
|
||||
systemImage: filter.iconName())
|
||||
.font(.callout)
|
||||
case let .list(list):
|
||||
if let list = currentAccount.lists.first(where: { $0.id == list.id }) {
|
||||
Label(list.title, systemImage: filter.iconName())
|
||||
.font(.callout)
|
||||
}
|
||||
default:
|
||||
Label(filter.localizedTitle(), systemImage: filter.iconName())
|
||||
.font(.callout)
|
||||
}
|
||||
}
|
||||
.transition(.push(from: .leading).combined(with: .opacity))
|
||||
|
@ -85,6 +82,9 @@ struct TimelineQuickAccessPills: View {
|
|||
.onDrop(of: [.text], delegate: PillDropDelegate(destinationItem: filter,
|
||||
items: $pinnedFilters,
|
||||
draggedItem: $draggedFilter))
|
||||
.buttonBorderShape(.capsule)
|
||||
.controlSize(.mini)
|
||||
|
||||
}
|
||||
|
||||
private func isFilterSupported(_ filter: TimelineFilter) -> Bool {
|
||||
|
|
Loading…
Reference in a new issue