made events update propery when changing on ios

update animations on adding and removing events
fix symbolpicker crash on fast scroll by making it not show all the symbols lol
might be ready to ship?
This commit is contained in:
neon443
2025-06-19 09:37:15 +01:00
parent 2b25ddf9b3
commit 3ee22da036
8 changed files with 49 additions and 27 deletions

View File

@@ -8,7 +8,7 @@
import Foundation
class SymbolsLoader: ObservableObject {
@Published var allSymbols: [String] = []
private var allSymbols: [String] = []
init() {
self.allSymbols = getAllSymbols()
@@ -16,7 +16,7 @@ class SymbolsLoader: ObservableObject {
func getSymbols(_ searched: String) -> [String] {
if searched.isEmpty {
return allSymbols
return []
} else {
return allSymbols.filter() { $0.localizedCaseInsensitiveContains(searched) }
}