Post

Replies

Boosts

Views

Activity

Reply to How to use core spotlight ?
I tried it but still never gets triggered. I put a breakpoint on print statement to know if gets triggered. this how my code looks now in content view NavigationView { List { ForEach(items) { item in NavigationLink { Text("Item at \(item.text ?? "")") } label: { Text(item.timestamp!, formatter: itemFormatter) } } .onDelete(perform: deleteItems) } .toolbar { #if os(iOS) ToolbarItem(placement: .navigationBarTrailing) { EditButton() } #endif ToolbarItem { Button(action: addItem) { Label("Add Item", systemImage: "plus") } } } Text("Select an item") } .onContinueUserActivity(CSSearchableItemActionType) {_ in print("IT WORKS") }
Mar ’25