Основное изменение во
View – атрибут @MainActor перенесен из тела в сам протокол, это означает, что свойство body вместе со всеми другими свойствами и методами, которые мы создаем, запускается на главном акторе.Так же появился новый API для цветов и градиентов, ну и дополнительные улучшения в разных компонентах👇
• Custom text effects and animations
• Create zoom animations between views
• Access user contacts with ContactAccessButton
• Create new colors by blending two other SwiftUI colors
• Create a mesh gradient
• Control the size of presented views
• Detect when the size or position of a view changes
• Read the size and position of a scrollview
• Scroll to exact locations inside a scrollview
• Detect whether a scrollview is currently moving or is idle
• Position and style subviews from a different view
• @State inside SwiftUI previews using @Previewable
Читать (En)
