Skip to content

Introducing Swift SDK

Joan Alavedra, Co-Founder at Openfort•3 min read
Openfort Swift SDK for native iOS wallet integration

Swift developers can now integrate secure wallet infrastructure natively into iOS applications with the release of the Openfort Swift SDK.

What is the Openfort Swift SDK?

The Openfort Swift SDK is a native library for iOS developers that provides the tools to build secure, non-custodial embedded wallets and implement account abstraction using Swift. It allows for effortless multi-account management and deep integration with native authentication flows like Apple Sign‑In and Google Sign‑In, eliminating the need for webviews or browser redirects. By providing type-safe APIs for connecting wallets, executing transactions, and persisting session states, the Swift SDK ensures that iOS applications can offer a seamless and high-performance "onchain" user experience while maintaining the highest security standards.

With this update, you can:

  • ✅ Manage multiple accounts effortlessly
  • ✅ Use developer‑friendly Swift APIs to interact with wallets
  • ✅ Integrate native Apple and Google authentication flows
  • ✅ Build faster with a ready‑to‑run sample app

This launch is part of our mission to make Openfort a first‑class citizen on every platform. Now, iOS developers get the same high‑level features as our web and React Native SDKs — but written for Swift.

swift_example.svg

Multi‑Account Support

Managing more than one wallet in a mobile app used to be tedious — juggling state, switching active accounts, and updating UI. The Swift SDK now ships with multi‑account support built‑in.

Your users can:

  • Connect multiple wallets to their profile
  • Switch between them instantly
  • Have session state fully persisted

The SDK takes care of persistence, so you can focus on building features, not state management.

Swift‑First Wallet APIs

We’ve mirrored the philosophy of our web and React Native hooks, but designed for Swift.

The APIs handle:

  • Connecting and disconnecting
  • Retrieving wallet metadata
  • Executing transactions
  • Handling errors gracefully

All type‑safe, leveraging Swift’s strong typing to prevent runtime issues.

Native Apple & Google Auth

Authentication flows are fully native — no webviews or redirects.

  • Apple Sign‑In is deeply integrated with the SDK for smooth onboarding on iOS.
  • Google Sign‑In works natively on iOS with a guided setup.

This gives you:

  • Instant, familiar login for users
  • A shorter path from auth → wallet actions
  • Fewer platform edge cases to debug

Example iOS App You Can Run Today

We’ve published a sample project to get you going immediately. It demonstrates:

  • Setting up the SDK in a Swift project
  • Connecting multiple wallets
  • Integrating Apple / Google auth
  • Switching active accounts

📂 Openfort Swift Auth Sample

TL;DR

Openfort Swift SDK gives you:

  • 🚀 Multi‑account wallet management
  • 🔗 Native Swift APIs for wallet actions
  • 🍏 / 🤖 Native auth flows (Apple + Google)
  • 📦 Example iOS app to start building today
Share this article

Related Articles

  1. Introducing React Native SDK

    We’ve just released the Openfort React Native SDK, making it easier than ever to integrate wallet functionality

  2. Recap: Launch Week 03

    Launch Week 03 wrapped — another milestone in making wallet and ecosystem development radically easier for builders.

  3. Using Embedded Wallets with React Native app

    Openfort offers a foundational framework for developers to easily implement streamlined authentication and wallet integration across various platforms.

  4. React Native support for embedded wallets

    Bringing embedded wallets for mobile now with React Native SDK compatible with Expo. Create wallets, signatures and payments.

  5. Introducing React SDK

    The new React SDK integrates Openfort Kit auth UI elements with dedicated React hooks and TypeScript types for embedded wallets.

  6. Onboard new users with Guest accounts

    You no longer need to ask users to authenticate to have a wallet pregenerated. Let users dive into your app instantly, no login required.

  7. Cross-App Wallets Explained: One Identity, Every App

    How cross-app (or "global") wallets give users a single, portable identity across multiple apps and chains — and how to ship one with Openfort.

  8. Announcing Ecosystem Wallet V2

    Launching an improved version of the ecosystem SDK. Now without the need to include api keys and much more reliable and secure communication protocol

Ship your first wallet in minutes

No credit card required • 2,000 operations free