Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: Yeongjong Lee <yj34.lee@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: woohyun <woo_hyun0705@naver.com>
{
base.CopyFrom(bindableObject);
- LottieButtonStyle style = bindableObject as LottieButtonStyle;
-
- if (style == null)
+ if (bindableObject is LottieButtonStyle lottieButtonStyle)
{
- return;
+ LottieUrl = lottieButtonStyle.LottieUrl;
+ PlayRange = lottieButtonStyle.PlayRange?.Clone();
}
-
- LottieUrl = style.LottieUrl;
- PlayRange = style.PlayRange;
}
/// <inheritdoc/>
{
base.CopyFrom(bindableObject);
- LottieSwitchStyle style = bindableObject as LottieSwitchStyle;
-
- if (style == null)
+ if (bindableObject is LottieSwitchStyle lottieSwitchStyle)
{
- return;
+ LottieUrl = lottieSwitchStyle.LottieUrl;
+ PlayRange = lottieSwitchStyle.PlayRange?.Clone();
}
-
- LottieUrl = style.LottieUrl;
- PlayRange = style.PlayRange;
}
/// <inheritdoc/>
{
return new LottieSwitchExtension();
}
-
- private void InitSubStyle()
- {
- }
}
}