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 Igor Moroz committed May 22, 2024
1 parent 66b5350 commit e8ef855
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 e8ef855

Please sign in to comment.