Loading…
Topic
Swift
8 posts about Swift. Every summary links to the original.
- 8 posts
- 5 companies
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
How we rebuilt the Shopify app in 12 weeks (2026) - Shopify
Shopify rebuilt its mobile app from React Native to native Swift and Kotlin in 12 weeks with 30 engineers organized in pods of two, each owning a product area across both platforms. Agents wrote most of the code, but humans owned architecture, product behavior, and final judgment. The team spent weeks upfront preparing the system around agents: the Reflex architecture, a CLI that can load any screen in milliseconds without a device, and guardrails enforced by CI, lint rules, and architecture.md files. Consistency between iOS and Android was prioritized over platform-specific idioms so that agent output remains reviewable and CI can detect drift. Launch time dropped by about 50% on Android and 14% on iOS, Android memory usage halved, and iOS peak memory dropped by more than 70%.
Introducing AnySpeechRecognizer and AnyDecisionModel: Open Models for Speech and Decisions on Apple Platforms
The post announces AnySpeechRecognizer and AnyDecisionModel, two Swift packages that extend the AnyLanguageModel approach to speech recognition and decision-making on Apple platforms. AnySpeechRecognizer wraps Apple’s SpeechAnalyzer API while allowing developers to swap in alternative speech recognition engines such as NVIDIA’s Parakeet and Alibaba’s Qwen3-ASR, running locally via Core ML. It also adds speaker diarization using NVIDIA’s Streaming Sortformer, which Apple’s framework lacks. AnyDecisionModel answers yes-or-no, multiple-choice, and rating-scale questions by deriving answers from model probabilities rather than generating text, supporting local backends like MLX, Core AI, and llama.cpp, as well as remote services like Jev and Ollama. Both packages download open models from the Hugging Face Hub and run them on device, with performance benchmarks provided for Parakeet models on an M4 Max Mac Studio.
AnyLanguageModel 1.0: One Year of Local Models on Apple Platforms
AnyLanguageModel 1.0, alongside swift-huggingface 1.0 and swift-xet 1.0, marks a year of development on a drop-in replacement for Apple’s Foundation Models framework that lets developers choose the model and provider. It provides a unified API for switching between local models (llama.cpp, MLX, Core ML) and hosted providers (OpenAI, Anthropic, Google Gemini, Ollama, Hugging Face). The update adds tool calling and guided generation support for all providers, image input using Foundation Models’ syntax on OS 27, and reasoning that appears in transcripts. API keys are supplied through closures instead of strings, enabling apps to fetch short-lived tokens from their own server. Local open-weight models such as Gemma 4 E2B and LFM2.5 2.6B fit on an iPhone, while Qwen3.8 27B runs on a Mac with 32 GB of memory, all loadable with a single line of code.
Discontinuing Swift Language IDE Support in the Kotlin Multiplatform Plugin
JetBrains is discontinuing Swift language IDE features in the Kotlin Multiplatform plugin starting with IntelliJ IDEA 2026.3 and Android Studio Rabbit 2 | 2026.2.2, including editing, syntax highlighting, and navigation within Swift files and between Swift and Kotlin. Running iOS applications and debugging Kotlin code on iOS will remain fully supported, and Kotlin/Native functionality such as Swift Export is unaffected. The existing Swift functionality will remain available in earlier versions of IntelliJ IDEA, Android Studio, and the KMP plugin, though these older versions will not receive further updates. The decision follows analysis showing limited and declining usage, with most iOS developers on KMP projects preferring Xcode for Swift development. The Swift support, originally developed for AppCode, required substantial effort to stay compatible with changes in Swift, Xcode, and the IntelliJ Platform.
Native is now the future of mobile at Shopify
Shopify is moving its mobile apps from React Native to Swift and Kotlin after reevaluating the assumptions behind its 2020 decision as coding models improved. React Native had reduced duplicated implementation and feature-parity work, but agents now handle much of the cross-platform implementation, translation, testing, and review work. Shopify is choosing greenfield rebuilds, with Helix breaking migrations into reviewed checkpoints that require tests, visual comparison, adversarial code review, and human approval. The Shop app reached the app stores as a fully native rebuild in 12 weeks, while the Shopify app migration is underway. The company will continue selected React Native library support while migrating all its apps, and will judge success by product velocity, app quality, and autonomous agent work.
Migrating Shop app from React Native to native
Shop migrated its React Native app to native iOS and Android implementations in SwiftUI and Jetpack Compose after coding-agent advances changed the economics of a shared mobile codebase. A one-week proof of concept showed that one engineer using agents could recreate screens, interactions, and flows closely enough to make a full migration feasible although the result was not production-ready. Six engineers then built the native foundations and main journeys with feature teams validating edge cases; they preserved sign-in state, push notifications, analytics events, and behavior while simplifying some screens. Compared with React Native, native startup was 23% faster on iOS and 50% on Android, stability rose from 99.5%+ to 99.95%+, Android size dropped 109 MB, release builds fell about 75%, and scrolling reached 120 FPS. The migration’s workflow combined specialized agents, plan approval, Tardis live-app feedback, screenshot and event comparisons, and human review while feature parity remained a release requirement.
Secure Authentication with a Push Notification in Your iOS Device
The tutorial shows how to build a native iOS sign-in flow using Okta DirectAuth and push notification MFA. It starts with an Okta Integrator Free Plan org, configures an OIDC Native Application and enables Okta Verify push notifications, while noting additional authorization policies may be required for a custom authorization server. In Xcode, the app uses Swift, SwiftUI, Swift Package Manager, and the Okta mobile Swift packages OktaDirectAuth and AuthFoundation to handle credentials, tokens, and MFA challenges without browser redirects. An AuthService coordinates authentication state, user and token information, sign-out, access-token refresh, and session restoration from stored credentials. The completed flow is described as phishing-resistant and able to maintain an active session directly within a SwiftUI app.
How We Built The Deals Tab in Swift UI
Etsy’s App Updates team rebuilt the long-standing Updates tab as Deals, a destination for coupons and sales, while targeting an October launch ahead of Cyber Week 2023. The team chose Swift UI and Tuist to create a modular, preview-driven implementation rather than extend legacy Objective-C and server-driven layout code. The screen is assembled from typed API modules, parsed with Decodable, and rendered in a Swift UI List using reusable components such as buttons, headers, footers, and listing cards. To bridge incompatible legacy listing-card code, the module accepts a view builder from the UIKit hosting controller, allowing existing cards to be wrapped while newer cards could be implemented in Swift UI. After three months, Deals shipped ahead of deadline; new modules took one sprint or less, previews decoupled front-end work from API support, and the tab increased session conversion and app visits after its mid-October rollout.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.