• Start

Languages

/

Swift

Swift SDK

The SurrealDB SDK for Swift enables simple and advanced querying of a remote database from Apple-platform and server-side Swift applications.

The SurrealDB SDK for Swift enables you to interact with SurrealDB from native Apple-platform applications (iOS, macOS, tvOS, watchOS and visionOS) as well as server-side Swift, allowing you to integrate SurrealDB into your app or backend and serve dynamic content to your users. You can use the Swift SDK to connect over HTTP or WebSocket, execute queries, manage data with type-safe CRUD via the @SurrealModel macro and query DSL, authenticate to the database, build user signup and signin functionality, and subscribe to data changes with live queries delivered as an AsyncStream.

To contribute to the SDK code, submit an Issue or Pull Request in the surrealdb.swift repository. To contribute to this documentation, submit an Issue or Pull Request in the docs.surrealdb.com repository.

Was this page helpful?