Core Spotlight , NSUserActivity with supports Call
To add a NSUseActivity with a call contact feature , is quite useful to have a better user experience for your app. even when it's not active. In case you need to refer to some basic's please refer to my previous page . With this blog today we will see how to use , NSUserActivity a supportCall feature. For example in your app. you have ability to add local mechanic where you had performed last service , next appointment so on and so forth. The code is quite simple and straight forward nothing much fancy here. func addLocalMechanicContactActivity(){ let localContact = NSUserActivity(activityType: "yourDomain.contact") localContact.title = "Local Mechanic Contact" localContact.userInfo = ["groupId":"20"] localContact.isEligibleForSearch = true localContact.becomeCurrent() localContact.contentAttributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeContact as String) ...