Core ML
Apple's framework for running machine learning models directly on the device — no data leaves the phone.
Models are trained elsewhere and converted to the .mlmodel format. At runtime Core ML automatically distributes the work across CPU, GPU and Neural Engine depending on the model and the battery state, without the developer having to choose.
The arguments for running locally are the same every time: no latency to a server, works in aeroplane mode, no per-call cloud cost, and the user's data stays put. The price is model size and that updating requires a new app version. This chain is what makes image search in Photos work without the pictures being uploaded.