TGViewer
Swift Tips Swift Tips @swift_tips · 3.17K subscribers
Post #610 2.17K
What’s new in SwiftUI for iOS 18

Основное изменение во 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)
  • 🔥 5
  • 👍 4
  • ❤ 2
More from @swift_tips
  1. Sep 9, 2026🧭Практикуем разработку с AI вместе с Podlodka iOS Crew Если давно хотелось не просто чита…
  2. Jul 22, 2026Всем привет! Давненько меня не было в тг, давно уже ничего не публиковал в каналах – вот р…
  3. Jun 4, 2026Яндекс анонсировал выход Yandex Mobile Ads SDK 8 — новой версии инструмента для монетизаци…
  4. Apr 5, 2026Как Swift работает с памятью: подробный гайд для разработчиков В статье iOS-разработчик из…
  5. Mar 23, 2026WWDC26 A week of technology, creativity, and community В этом году WWDC26 пройдёт с 8 по 1…
  6. Dec 31, 2025С наступающим Новым Годом!!! ❤️🎄🥂 Дорогие друзья и коллеги! Хочу начать этот пост со сло…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →