Initializing CSSearchableIndex with the protection class has no effect. I tried to use FileProtectionType.none as the protection class for my index which should mean theres no file protection at all. However, the Spotlight results would only show up if the device was unlocked.
Code Block swift let index = CSSearchableIndex(name: "c1", protectionClass: FileProtectionType.none) index.indexSearchableItems(items)