Skip to content

Commit

Permalink
Add support for using CompatibleAnimationView in xib files / storyboa…
Browse files Browse the repository at this point in the history
…rds (#2192)
  • Loading branch information
Saratsin authored Sep 15, 2023
1 parent 2d62621 commit b1f170b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1f170b

Please sign in to comment.