Two Ways to Add Interactions Based on a User's Scroll in Play
ฝัง
- เผยแพร่เมื่อ 9 ก.พ. 2025
- In this video, you'll learn how to use Play's Expression Editor to check how far a user has scrolled through a page or stack. In the example we'll use, we will add a condition to set a component's state as a user scrolls.
We'll do this in two ways. First, we'll use a trigger property to track the scroll offset in points; then we'll use an object property to track the percent scroll progress.
Learn more on our support site: learn.createwi...
Install Play for macOS and iOS: createwithplay...
Get more info on Play, a collaborative design software that combines a familiar canvas with iOS gestures, UI elements, and SwiftUI: www.createwith...
#Expressions #DesignTool #CreatewithPlay
What are you using to run the prototype?
Simulator? iPhone? Something else?
We use an iPhone! We're showing it on the screen using a program called Bezel.