This commit is contained in:
Francesco 2025-05-25 11:04:56 +02:00
parent e32c1d39bc
commit cb34e1a265

View file

@ -353,7 +353,6 @@ struct SearchView: View {
searchHistory.removeAll { $0.lowercased() == trimmedTerm.lowercased() }
searchHistory.insert(trimmedTerm, at: 0)
// Keep only last 5 searches for more practical display
if searchHistory.count > 5 {
searchHistory = Array(searchHistory.prefix(5))
}