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 (airbnb#2192)
  • Loading branch information
Saratsin authored and iago849 committed Feb 8, 2024
1 parent 7f7a972 commit 776c545
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 776c545

Please sign in to comment.