What’s new in SwiftUI for iOS 17
Про доступность visionOS SDK вы уже и так знаете, нет смысла писать. Вместо этого, предлагаю ознакомиться с обновлениями SwiftUI в iOS 17.
Scroll view improvements
• How to make a ScrollView snap with paging or between child views
• How to disable ScrollView clipping so contents overflow
• How to make a ScrollView start at the bottom
• How to indent the content or scroll indicators in a ScrollView
• How to make views scroll with a custom transition
• How to flash the scroll bar indicators of a ScrollView or List
• How to enable vertical page scrolling
Drawing and animation improvements
• How to add Metal shaders to SwiftUI views using layer effects
• How to dynamically adjust the appearance of a view based on its size and location
• How to animate SF Symbols
• How to run a completion callback when an animation finishes
• How to create multi-step animations using phase animators
• How to combine shapes to create new shapes
• How to adjust the size of a view relative to its container
More welcome improvements
• How to add in-app purchases in SwiftUI
• How to add an inspector to any view
• How to detect and respond to key press events
• How to control which NavigationSplitView column is shown in compact layouts
• How to add haptic effects using sensory feedback
• How to tell the user that no content is available
• How to read the red, green, and blue values from a Color
• How to make buttons that repeat their action when pressed
Читать (En)
Post #414
2.51K
- ❤ 9
- 🔥 5
- 👍 1