#touch

In a Ray Kiln SwiftUI effect, a float2 argument named touch: a point in the view, in points from its top left, that follows a press and drag on the picture and eases back to its rest place when let go. A // @touch x y line says where it rests, as fractions of the view's size.

1 shader

All techniques · In the glossary