From b1f170b46db347ecd36ffb8b03610c2cabead046 Mon Sep 17 00:00:00 2001 From: Taras Shevchuk Date: Sat, 16 Sep 2023 00:17:29 +0300 Subject: [PATCH] Add support for using CompatibleAnimationView in xib files / storyboards (#2192) --- .../Public/iOS/Compatibility/CompatibleAnimationView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/Public/iOS/Compatibility/CompatibleAnimationView.swift b/Sources/Public/iOS/Compatibility/CompatibleAnimationView.swift index 0f8bd18cf7..87a8cb2a9c 100644 --- a/Sources/Public/iOS/Compatibility/CompatibleAnimationView.swift +++ b/Sources/Public/iOS/Compatibility/CompatibleAnimationView.swift @@ -193,8 +193,10 @@ public final class CompatibleAnimationView: UIView { commonInit() } - required init?(coder _: NSCoder) { - fatalError("init(coder:) has not been implemented") + required init?(coder: NSCoder) { + animationView = LottieAnimationView() + super.init(coder: coder) + commonInit() } // MARK: Public