We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965d744 commit 6078607Copy full SHA for 6078607
source/LottieToWinComp/Effects.cs
@@ -109,6 +109,12 @@ public static Visual ApplyDropShadow(
109
Visual source,
110
DropShadowEffect dropShadowEffect)
111
{
112
+ if (!context.ObjectFactory.IsUapApiAvailable(nameof(CompositionVisualSurface), versionDependentFeatureDescription: "Drop Shadow"))
113
+ {
114
+ // The effect can't be displayed on the targeted version.
115
+ return source;
116
+ }
117
+
118
Debug.Assert(dropShadowEffect.IsEnabled, "Precondition");
119
Debug.Assert(context is PreCompLayerContext || context is ShapeLayerContext, "Precondition");
120
0 commit comments