---
title: Swift
slug: compatibility/swift
icon: {"faIcon":"fa-brands fa-swift"}
docTags: 
createdAt: 2023-07-28T20:49:05.858Z
---

![](https://api.archbee.com/api/optimize/qoRkNxW5fJ81r_NqVpc8C/MZftzC3gAXTO9SPU1BMwn_swift-ditto-icon-card-light-mode.png)

# Platforms

| **Platform**  | **Support** | **Versions** |
| ------------- | ----------- | ------------ |
| iOS           | ✓           | 14 and later |
| iPadOS        | ✓           | 14 and later |
| iOS Simulator | ✓           | 14 and later |
| tvOS          | ✓           | 14 and later |
| Mac AppKit    | ✓           | 11 and later |
| Mac Catalyst  | ✓           | 14 and later |
| visionOS      | beta        | 1 and later  |

# Transports

| **Platform**             | **BLE** | **AWDL** | **Wi-Fi Aware** | **LAN** | **WebSockets** |
| ------------------------ | ------- | -------- | --------------- | ------- | -------------- |
| iOS                      | ✓       | ✓        | --              | ✓       | ✓              |
| iPadOS                   | ✓       | ✓        | --              | ✓       | ✓              |
| iOS Simulator            | --      | ✓        | --              | ✓       | ✓              |
| Mac AppKit               | ✓       | ✓        | --              | ✓       | ✓              |
| Mac Catalyst             | ✓       | ✓        | --              | ✓       | ✓              |
| tvOS                     | ✓²      | ✓        | --              | ✓       | ✓              |
| tvOS Simulator           | --      | ✓        | --              | ✓       | ✓              |
| visionOS beta¹           | ✓²      | ✓        | --              | ✓       | ✓              |
| visionOS Simulator beta¹ | --      | ✓        | --              | ✓       | ✓              |

¹ visionOS & visionOS Simulator beta are only supported with beta package [`4.8.0-visionos-beta.1`](https://github.com/getditto/DittoSwiftPackage/releases/tag/4.8.0-visionos-beta.1)
²*Vision Pro/Apple TV to Vision Pro/Apple TV BLE is not currently supported due to device limitations.*

# Devices

| **Device**       | **Support** |
| ---------------- | ----------- |
| iPhone           | ✓           |
| iPad             | ✓           |
| MacBook          | ✓           |
| Mac (Other)      | ✓           |
| Apple TV         | ✓¹          |
| Apple Vision Pro | ✓           |
| Apple Watch      | --          |

¹ tvOS does not allow persistant storage due to operating system limitations. Non persistant storage like the caches directory must be used instead.

# Objective-C&#x20;

:::hint{type="info"}
Ditto does not offer native support for apps developed in Objective-C.&#x20;

If you want to use the Ditto SDK for Swift with an Objective-C app, you must use a bridge to integrate.

For a code walkthrough on how to create a bridge that calls into Swift from Objective-C, see the getditto > [example-swift-bridge-to-objectivec](https://github.com/getditto/example-swift-bridge-to-objectivec) repository in GitHub.
:::

