Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Backporting SwiftUI APIs

Дата публикации: 30-09-2026 20:45:13

Dave DeLong: I can improve the process of removing backwards compatibility shims by using conditional compilation to remind me when they’re no longer necessary! […] This does mean that the first time we change our deployment target, we’ll get a bunch of compilation errors. But given the nature of how Backport is implemented, this should […]

Основное содержимое страницы с новостью.

Dave DeLong:

I can improve the process of removing backwards compatibility shims by using conditional compilation to remind me when they’re no longer necessary!

[…]

This does mean that the first time we change our deployment target, we’ll get a bunch of compilation errors. But given the nature of how Backport is implemented, this should be a relatively quick process to move past. (And of course, you’re welcome to use #warning instead of #error).

Shaps Benkau:

SwiftUIBackports mirrors Apple’s SwiftUI API names, shapes, behavior, documentation, and availability where practical. This keeps app code familiar today, and easy to migrate away from once your deployment target reaches the native API.

Backports are discovered through .backport, the Backport namespace, or backport-prefixed environment values.

Majid Jabrayilov:

Usually, we don’t see many new APIs in intermediate releases like 27.1, but this time is different. Apple introduced several new iPhone Duo-related APIs in the 27.1 release. This week, we will learn how to use all of these new APIs without bumping your project’s target version.

[…]

Here we introduced the toolbarVerticalBehavior function on the Backport type that handles availability checks and calls the new APIs if available or returns a plain view when it is not available.

Previously:

iOS iOS 27 iPhone Duo Mac macOS 27 Golden Gate Open Source Programming Swift Programming Language SwiftUI

2 Comments

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1TipKit for the Real World013.8401-09-2026
2SwiftUI Toolbars09.708-09-2026
3Swift 6.4: Warning for Weak Captures Within Nested Closures09.6801-09-2026
4Xcode 27.1 Beta 1 Released019.5922-09-2026
5I Said No and Apple Said Yes011.8501-10-2026
6Xcode 27 RC Released020.1914-09-2026
7Xcode 27.2 beta Released019.1817-09-2026
8Заметки в своём GitHub без сервера: как я оживил BatNoter и написал синхронизацию на Git Data API07.4724-09-2026
9★ The Dalrymple Report: Ring, Olympics, Siri slips again07.3513-02-2026
10★ The Dalrymple Report: Refurbished gear, Apple execs, and 3D printing07.2712-12-2025

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 13.74. Источник: mjtsai.com.