Skip to content

Commit

Permalink
Don't invoke removeObserver in deinit
Browse files Browse the repository at this point in the history
According to Apple's documentation, this method invocation should not be needed anymore.
```
If your app targets iOS 9.0 and later or macOS 10.11 and later, you don't need to unregister an observer in its dealloc method.
```
  • Loading branch information
zenangst committed Jan 21, 2020
1 parent 9d37b62 commit 738109f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lottie-swift/src/Public/Animation/AnimationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,6 @@ final public class AnimationView: LottieView {
commonInit()
}

deinit {
NotificationCenter.default.removeObserver(self)
}

// MARK: - Public (UIView Overrides)

override public var intrinsicContentSize: CGSize {
Expand Down

0 comments on commit 738109f

Please sign in to comment.