We have a View that uses the CountdownLabel.
When the view is deallocated, the countdownlabel remains in memory.

The issue seems to be related to the LTMorphingLabel used inside the library:

I'm still able to see the issue after removing calls to the start timer function and setting the label to optional and manually nilling upon deinit.
Here's an example:
import CountdownLabel
final class SomeView: UIView {
private var countdownLabel = CountdownLabel?
init() {
// setup label
...
}
func setupSubviews() {
// setup constraints
}
deinit {
self.countdownLabel?.cancel()
self.countdownLabel?.removeFromSuperview()
self.countdownLabel = nil
}
}
Any ideas?
We have a View that uses the CountdownLabel.

When the view is deallocated, the countdownlabel remains in memory.
The issue seems to be related to the LTMorphingLabel used inside the library:

I'm still able to see the issue after removing calls to the start timer function and setting the label to optional and manually nilling upon deinit.
Here's an example:
Any ideas?