src/controls/dev/AnimatedIcon/Docs/SingleStateSegmentLookup.md
Animated Icon is being published with a single state property. While this makes the segment lookup logic simplier than multiple state properties, there is still some complexity which will be outlined here.
First, we will examine the example of an animated icon with a state property set to "Normal" which then changes to "PointerOver". Here are the steps animated icon does to determine what segment to play.
Here is the same algorithm but with variable names [PreviousState] and [NewState].
We want Animated Icon to be usable with sliders as well, where the slider's value drives the icon. I think there are two ways to do this, we can add step 7 to the segment lookup described above, which allows you to tie the sliders value to the animated Icon's state property with a binding (and converter). The other option is to tell consumers to wrap the lottie gen output in their own implementation of IRichAnimatedIconSource which overrides the Marker property's Lookup() method to return a proper segment when float is asked for. We've decided to implement the former since it is much simplier for the consumer, albeit a bit magical and difficult to discover.