Skip to content

Instantly share code, notes, and snippets.

@MathVasc
Created February 9, 2018 20:17
Show Gist options
  • Save MathVasc/050650c4c898446782e639e28b3fd088 to your computer and use it in GitHub Desktop.
Save MathVasc/050650c4c898446782e639e28b3fd088 to your computer and use it in GitHub Desktop.
public static func setSpotLightIndexes(){
let items = DAOItem.sharedInstance.fetchItems()
var searchableItems = [CSSearchableItem]()
// deletando todos os itens
CSSearchableIndex.default().deleteAllSearchableItems { (error) in
guard error == nil else {
print(error!.localizedDescription)
return
}
//.
//.
//.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment