r/iOSProgramming • • Oct 25 '26

Discussion Your iPhone Can Run an LLM Locally — A Hands-On Swift Guide to Foundation Models in iOS 27

https://medium.com/stackademic/your-iphone-can-run-an-llm-locally-a-hands-on-swift-guide-to-foundation-models-in-ios-27-e5822e2e882b?sk=703e27da73c7b305614b599c6d1f389f
24 Upvotes

5 comments sorted by

9

u/Open_Context6850 Oct 25 '26

worth adding for anyone trying it: check SystemLanguageModel.default.availability before showing the feature. on devices without apple intelligence, or when its turned off or the model is still downloading, it just isnt there, so you need a fallback path in the ui, not only a catch around the call.

-18

u/100_rv Oct 25 '26

Absolutely! Great point. Checking "SystemLanguageModel.default.availability" before presenting the feature is essential. A proper fallback UX matters just as much as handling errors during the model call. Thanks for adding this practical detail!

5

u/mindful999 Oct 25 '26

It can, but its pretty much dogshit at most tasks and questions.

2

u/wassona Oct 25 '26

Yep. I have an app I created running YOLO 26n locally for object detection. Works pretty well.