InfoQ Homepage Swift Content on InfoQ
-
Vertex AI in Firebase Aims to Simplify the Creation of Gemini-powered Mobile Apps
Currently available in beta, the Vertex AI SDK for Firebase enables the creation of apps that go beyond the simple chat model and text prompting. Google has just made available a colab to help developers through the steps required to integrate it into their apps.
-
Swift 6 Officially Available
The Swift team has officially announced the availability of Swift 6, a new major version of Apple open-source language with focus on low-level and embedded programming, concurrent code safety, new cross-platforms APIs, and extended Linux and Windows support.
-
Swift Testing is a New Framework from Apple to Modernize Testing for Swift across Platforms
While XCTest remains the preferred way to create tests in Xcode, the new Swift Testing framework attempts to introduce an expressive and intuitive API for the definition of tests that applies to all platforms where Swift is supported. The framework also enables parallelizing, categorizing and associating tests with bugs.
-
Lyft Promotes Best Practices for Collaborative Protocol Buffers Design
Lyft shared its experiences using Protocol Buffers for inter-system integration, primarily focusing on collaborative protocol design for definitions shared between teams and systems. The company promotes approaches that improve knowledge sharing, consistency, and development process quality over raw efficiency optimizations.
-
Vapor 5 Materializes the Future of Server-Side Development in Swift
Over four years since the launch of its current version, the team behind Swift server-side development framework Vapor is making room for Vapor 5, which aims at leveraging Swift 6 concurrency capabilities and laying the foundations for the framework's future evolution. An initial alpha release is planned to be ready when Swift 6 is officially released.
-
The Swift Composable Architecture Brings the Redux Model to iOS App Development
The Composable Architecture (TCA), which recently reached version 1.13, is an "ergonomic" Swift library that provides a general framework to address commonplace problems when you build an app, including state management, feature composition, side effect management, and testing.
-
Swift 6 Introduces Embedded Swift for Low-level Programming
Swift 6 brings a new compilation mode aiming to address the specific constraints of embedded devices as well as kernel- and other low-level code. Embedded Swift is a full-featured subset of Swift covering most of the language, including value and reference types, closures, optionals, error handling, generics and more.
-
Swift 6 Brings New Opt-In Data-Race Safe Mode
In his WWDC 2024 talk, Apple's Languages and Runtimes team lead and Swift core team member Ted Kremenek introduced Swift 6 new data-race safe mode, which promises to help developers create concurrent programs free of data races thanks to a new compile-time static detector.
-
Apple Announces its First AI Code Generation Model, Swift Assist
Described as a companion tool for all coding tasks, Swift Assist aims to help developers transform ideas into code and focus on higher-level problems. Powered by a model running in Apple's Cloud, Swift Assist is integrated into Xcode and is able to generate code from a prompt expressed in human language.
-
Swift Asynchronous Programming Recipes on GitHub
Swift developer Matt Massicotte, formerly at Crashlytics and Apple, has recently launched a GitHub repo collecting a number of useful recipes to make it easier to use Swift concurrency and solve recurrent problems, while being aware of the most common traps you can fall into.
-
Swift 5.10 Brings Full Data Isolation Compile-Time Safety to Concurrent Code
The latest Swift release, Swift 5.10, includes just a few new proposals that nevertheless represent an important achievement for the language concurrency model, which is now able to ensure full data isolation at the compiler level, explains Swift team engineer Holly Borla.
-
Swift OpenAPI Generator Reaches 1.0
Open-sourced six months ago, the Swift OpenAPI Generator is now stable. Version 1.0 brings new features and a simplified API.
-
Swift 5.9 Backtracer is Now Concurrency-Aware, Improves Readability and Linux Support
Besides extending the language through macros and borrow-stile memory management, Swift 5.9 also introduces some helpful features for program debugging, including an out-of-process crash handler, just-in-time debugging support, and backtracking to makes it easier to interpret control flow when using structured concurrency.
-
Swift 5.9 Brings a Macro System and C++ Interoperability
In addition to an expressive macro system and a limited form of C++ interoperability, Swift 5.9, now officially available, also introduces parameter packs, ownership-based memory management, and more.
-
Transitioning to SwiftUI at Airbnb
In 2022, the iOS team at Airbnb decided SwiftUI was sufficiently mature to be adopted for their official app. This required a careful transition, explains Airbnb staff engineer Bryn Bodayle.