SwiftAI

Dev tools

swift library for llm integration

SHOW HN2025

SwiftAI

open-source library to easily build LLM features on iOS/macOS

github.com

#swift#ios llm#on-device llm#apple foundation models#swift ai sdk

74points
24comments
#967of 3,837 in 2025
Top 26%of 2025 by points

How HN took it

RoastedHalf or more of the comments are critical

4 positive, 2 neutral or asking, 0 mixed, 6 critical, out of 12 comments about the project. Thread score -0.16.

Idea: 1 for, 3 againstDocs: 1 for, 2 againstExecution: 1 for, 1 againstDesign: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful wrapper for LLM calls on Apple platforms, API looks Swift-native

    From 2 comments
    • Awesome, this is a good idea! Having a nice wrapper to make LLM calls easier is very helpful too :) Nice to see someone digging in on the system models. That's on my list to play…
      deanputney on HN
    • I do a lot of AI work and right now the story for doing LLMs on iOS is very painful (but doing Whisper or etc is pretty nice) so this is existing and the API looks Swift native…
      jc4p on HN

Objections

  • Documentation lacks examples for custom LLM integrations

    From 2 comments
    • Needs more example on custom.
      keyle on HN
    • There is no examples or documentation on `CustomLLM` the README file has examples on `SystemLLM` and `OpenaiLLM` but there's no way for us to know if we need to bring in guff…
      jdmg94 on HN
  • Possibly built with AI coding tools, seen as vibe coded

    From 1 comment
  • Name may conflict with Apple's Swift trademarks

    From 2 comments
    • You may get a letter from Apple’s lawyers because of the name - Swift and SwiftUI are trademarks, and this seems like something they’d want to keep for themselves.
      rafram on HN
    • > Swift and SwiftUI are trademarks This is called SwiftAI, though.
      andsoitis on HN

Requests

  • Support for bringing own CoreML or on-device models

    From 1 comment
    • I do a lot of AI work and right now the story for doing LLMs on iOS is very painful (but doing Whisper or etc is pretty nice) so this is existing and the API looks Swift native…
      jc4p on HN

Questions

  • Quality of Apple's on-device LLM responses and length control

    From 1 comment
    • Mind me asking what your thoughts are on the overall quality of Apple's on-device LLMs? I've found that LanguageModelSession always returns very lengthy responses:…
      hbcondo714 on HN

Alternatives named

  • llama.cpp with GGUF models

    From 1 comment
    • I do a lot of AI work and right now the story for doing LLMs on iOS is very painful (but doing Whisper or etc is pretty nice) so this is existing and the API looks Swift native…
      jc4p on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/45052200)