Specify The Animation That Happens When a Toggle Changes State
Daily Coding Tip 193
It’s possible to specify an animation when adding a Binding<Bool> to a Toggle.
I expected $myBinding.animation() would return an animation, and it would therefore not be suitable for use as a Binding<Bool>.
However, it turns out that this function is really just informing SwiftUI of your intention without actually r…
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.

