mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add a clear all button to recent searches
Lets users wipe their whole search history at once from the recent searches section header, as per the designs.
This commit is contained in:
@@ -209,8 +209,19 @@ struct SearchScreen: View {
|
||||
}
|
||||
}
|
||||
} header: {
|
||||
Text(UntranslatedL10n.screenSearchRecentSearches)
|
||||
.compoundListSectionHeader()
|
||||
HStack(spacing: 8) {
|
||||
Text(UntranslatedL10n.screenSearchRecentSearches)
|
||||
.compoundListSectionHeader()
|
||||
|
||||
Spacer()
|
||||
|
||||
// The compound text link style has no accent colour variant.
|
||||
Button { context.send(viewAction: .clearBreadcrumbs) } label: {
|
||||
Text(L10n.actionClearAll)
|
||||
.font(.compound.bodyMDSemibold)
|
||||
.foregroundStyle(.compound.textActionAccent)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.compoundList(.plain)
|
||||
|
||||
Reference in New Issue
Block a user