Menu

Zero dependencies: notes on nRouter's Swift SDK
📰

Zero dependencies: notes on nRouter's Swift SDK

DEV Community: ios·nRouter·about 2 hours ago
#fkrPm5cp
#devtoios#devto#dev#nrouter#swift
Reading 0:00
15s threshold

Adding AI calls to an iOS or macOS app usually goes one of two ways. You hand-roll URLSession code and maintain it forever, or you pull in a client library that drags its own dependency tree along. The Swift guide for nRouter takes a narrower path: an official Swift package with zero third-party dependencies, built on URLSession and structured concurrency.

Full guide: https://nrouter.ai/docs/sdks/swift

The package

It's a Swift Package Manager dependency, so setup is one line in Package.swift (or File → Add Package Dependencies in Xcode):

dependencies : [ .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.