Skip to content

Instantly share code, notes, and snippets.

daehn / Searchable.swift
Last active Apr 23, 2019
Swift protocols and protocol extensions to easily add and delete conforming instances to Spotlight. Blog post can be found here:
View Searchable.swift
import UIKit
import CoreSpotlight
import MobileCoreServices
public typealias Completion = NSError? -> Void
// MARK: - Searchable Protocol
public protocol Searchable {
static var spotlightDomainIdentifier: String { get }