swiftui scrollview
Generated on 8/21/2024
2 searches
In the context of SwiftUI and ScrollView, several enhancements and features were discussed during the WWDC sessions:
-
ScrollView Modifiers in tvOS 18: New view modifiers specific to ScrollView were introduced, allowing for more control over the appearance and behavior of scrollable content. For example, the
onScrollVisibilityChange
modifier can be used to change the state of a view when it scrolls off-screen, which can be useful for dynamically updating the UI based on scroll position. This was discussed in the session Migrate your TVML app to SwiftUI. -
Custom Scroll Effects: SwiftUI's
scrollTransition
modifier allows for creating custom scroll effects, such as rotating and offsetting elements based on their position in the scroll view. This can be used to create unique visual experiences, like a circular carousel effect. This was covered in the session Create custom visual effects with SwiftUI. -
Programmatic Control and Enhancements: SwiftUI now offers more programmatic control over scroll views, including the ability to detect when a view's visibility changes due to scrolling. This can be used to create experiences centered around content moving on or off-screen, such as auto-playing videos. Additionally, there are new APIs for fine-grained control over scroll views, such as controlling content alignment and scroll positions. These enhancements were highlighted in the session What’s new in SwiftUI.
These sessions provide a comprehensive overview of the new capabilities and enhancements for ScrollView in SwiftUI, allowing developers to create more dynamic and visually appealing applications.
Get started with Dynamic Type
Dynamic Type lets people choose their preferred text size across the system and all of their apps. To help you get started supporting Dynamic Type, we’ll cover the fundamentals: How it works, how to find issues with scaling text in your app, and how to take practical steps using SwiftUI and UIKit to create a great Dynamic Type experience. We’ll also show how you can best use the Large Content Viewer to make navigation controls accessible to everyone.
Migrate your TVML app to SwiftUI
SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.
SwiftUI essentials
Join us on a tour of SwiftUI, Apple’s declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you’re brand new to SwiftUI or an experienced developer, you’ll learn how to take advantage of what SwiftUI has to offer when building great apps.
Create custom visual effects with SwiftUI
Discover how to create stunning visual effects in SwiftUI. Learn to build unique scroll effects, rich color treatments, and custom transitions. We’ll also explore advanced graphic effects using Metal shaders and custom text rendering.
What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.