Relative Content

Tag Archive for iosswiftswiftuiuikit

Disable ScrollView until Drag Threshold is passed all in one gesture

i am trying to implement a custom gesture on this view that makes it so that only when a certain drag threshold is passed, does the underlying scrollview receive the drag touch events and begin scrolling all in one gesture. trying to mimic what i assume to be the gesture logic in the new ios 18 photos app

Disable ScrollView until Drag Threshold is passed all in one gesture

i am trying to implement a custom gesture on this view that makes it so that only when a certain drag threshold is passed, does the underlying scrollview receive the drag touch events and begin scrolling all in one gesture. trying to mimic what i assume to be the gesture logic in the new ios 18 photos app

Disable ScrollView until Drag Threshold is passed all in one gesture

i am trying to implement a custom gesture on this view that makes it so that only when a certain drag threshold is passed, does the underlying scrollview receive the drag touch events and begin scrolling all in one gesture. trying to mimic what i assume to be the gesture logic in the new ios 18 photos app

Disable ScrollView until Drag Threshold is passed all in one gesture

i am trying to implement a custom gesture on this view that makes it so that only when a certain drag threshold is passed, does the underlying scrollview receive the drag touch events and begin scrolling all in one gesture. trying to mimic what i assume to be the gesture logic in the new ios 18 photos app

How do I make such a view with SwiftUI?

I want to show an area where I move my finger on the image and I want to move it around on the image, I want these cut images to change when I move it dynamically on the image, how can I do it with SwiftUI or how should I google it?

Easing functions for using CADisplayLink

I need to manually animate something frame by frame in SwiftUI using CADisplayLink, which provides me frame to frame updates. For animating a value from a to b in a linear fashion, the implementation is trivial, simply calculate a rate of change with (b-a) / duration and apply this delta to the value on every frame.