Swift is Apple's compiled language for iPhone, iPad and Mac apps, and SwiftUI is its declarative framework for their interfaces. EOXLABS builds natively in Swift when a product needs deep platform integration, offline behavior or responsiveness a web view can't match, and connects the app to the same edge API that serves the web.
Swift covers Apple platforms in the EOXLABS stack, while Tauri covers cross-platform desktop. Both sit under the native apps capability.
How does EOXLABS structure a Swift app?
The interface is SwiftUI: views, controls and layout declared in code, with data flowing from models down to the views that display it. Underneath, EOXLABS compiles in the Swift 6 language mode. Swift's data-race safety guide says that mode "eliminates these problems by preventing data races at compile time": the compiler checks the isolation of all mutable state and rejects code that could let two threads touch it at once.
In practice, session state, sync queues and caches live in actors; anything that updates the screen runs on the main actor; values crossing between them must be Sendable. The language mode can be set per target, so when EOXLABS takes over an existing app, older modules can stay in Swift 5 mode while new code adopts full checking.
How does one backend serve the app and the web?
The app talks to the same API as the website, usually a set of Cloudflare Workers. Three things keep the two clients from drifting:
- One contract. The API is described in an OpenAPI document, and Apple's Swift OpenAPI Generator builds the Swift client from it at build time. It supports OpenAPI 3.0 and 3.1, so a changed field breaks the app's build instead of its users.
- One identity. Passkeys on Apple platforms require an associated domain with the
webcredentialsservice, and the relying party is usually the service's domain. When the app and the website share that domain, a passkey created in one works in the other. - One set of links. Universal links open the app for URLs the website also serves. Universal links and the passkey association both depend on an
apple-app-site-associationfile at/.well-known/, served over HTTPS with a valid certificate and no redirects. EOXLABS serves it from the same Worker as the site:
{
"applinks": {
"details": [
{
"appIDs": ["ABCDE12345.com.example.members"],
"components": [{ "/": "/bookings/*" }]
}
]
},
"webcredentials": { "apps": ["ABCDE12345.com.example.members"] }
}
Old app versions stay in the field long after the website has moved on. App Store Connect can release an update in phases over 7 days to users with automatic updates turned on; users who turn them off keep the old version until they update by hand. EOXLABS therefore makes API changes additive, versions anything breaking, and lets the API tell an outdated app when it must update.
What does App Review mean for the architecture?
Apple says App Review typically reviews at least 50% of submissions in under 24 hours and 90% in under 48 hours. A fix to the API ships in minutes; a fix to the app waits for review. That alone pushes business rules to the server. The App Review Guidelines add more constraints:
| Guideline | What it requires | Design consequence |
|---|---|---|
| 2.1 App Completeness | A demo account for login screens, and the back end turned on | A seeded reviewer account in an environment that stays up during review |
| 2.5.2 | No downloading or executing code that adds or changes features | The server sends data and settings; new behavior ships in a new binary |
| 4.2 Minimum Functionality | More than a repackaged website | A web wrapper is a rejection risk; native screens must earn their place |
| 4.8 Login Services | If a third-party or social login sets up the primary account, also offer an equivalent option with limited data collection | Decide sign-in methods before design, not after review |
| 5.1.1(v) Account Sign-In | Apps that allow account creation must allow account deletion in the app | A deletion endpoint and in-app flow from the first release |
| 3.1.1 and 3.1.3(e) | In-app purchase to unlock digital features; other payment methods for physical goods and services used outside the app | StoreKit for digital features, Stripe for real-world bookings and goods |
Apple's own review page adds that over 40% of unresolved issues relate to guideline 2.1, so EOXLABS treats the reviewer account as a release artifact, tested like any other.
Native Swift, Tauri or an installable web app?
| Native Swift | Tauri 2 on iOS | Installable web app | |
|---|---|---|---|
| Interface | SwiftUI and native controls | Web interface in WKWebView | Web interface in the browser engine |
| Platform access | The full SDK, including APNs push | Plugins, with iOS code written in Swift | Web APIs; Web Push for Home Screen web apps since iOS 16.4 |
| Release path | App Review | App Review | Deploys like the website |
| Shared with the web | API contract, identity, links | Most of the interface code | Everything |
| Best fit at EOXLABS | Apps people use daily, offline, or with device hardware | Internal tools that also need a desktop build | Forms and content that work in a browser |
In hospitality and membership, a member-facing app that people open every day is a candidate for the first column; a staff tool used at a desk fits the third.
When not to use Swift
- Android matters as much as iOS and the team is small. SwiftUI runs only on Apple platforms, so Android means a second interface codebase.
- The product is forms and content. An installable web app ships without review and avoids the repackaged-website problem entirely.
- Rules change daily. Logic that must move faster than review belongs on the server, whatever the client.
- The client can't staff it. In Stack Overflow's 2025 Developer Survey, 5.7% of professional developers reported extensive work in Swift. A native app needs at least one person who can keep it current as Apple's SDKs and review rules change.