Load, configure, and run Core ML models in iOS apps. This skill covers the Swift side: model loading, prediction, MLTensor, profiling, and deployment. Target iOS 26+ with Swift 6.2, backward-compatible to iOS 14 unless noted.
Scope boundary: Python-side model conversion, optimization (quantization, palettization, pruning), and framework selection live in the apple-on-device-ai skill. This skill owns Swift integration only.
See references/coreml-swift-integration.md for complete code patterns including actor-based caching, batch inference, image preprocessing, and testing.
يمكنك دمج نماذج Core ML وتحسينها في تطبيقات iOS لاستدلال التعلم الآلي على الجهاز. يغطي تحميل النماذج (.mlmodelc، .mlpackage)، والتنبؤات باستخدام الفئات التي تم إنشاؤها تلقائيًا وMLFeatureProvider، وتكوين وحدة الحساب (CPU، وGPU، وNeural Engine)، وMLTensor، وVNCoreMLRequest، وMLComputePlan، وخطوط الأنابيب متعددة النماذج، واستراتيجيات النشر. يُستخدم عند تحميل نماذج Core ML، أو عمل تنبؤات، أو تكوين وحدات الحوسبة، أو تحديد أداء النموذج. المصدر: dpearson2699/swift-ios-skills.