In Daily Coding Tip 193 I talked about how a Toggle
can be given a Binding
that also specifies the animation which should occur when the value changes.
Since the animation
function on a Binding
actually returns a Binding
, it can be used wherever a Binding
exists. A Slider
wouldn’t be a very good example, although it would be possible, because the smooth…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.