Closed Itheme closed 2 years ago
observeValueForKeyPathin the UITextView+Placeholder.m calls [self updatePlaceholderTextView]; which performs bounds change. Then observeValueForKeyPath is called again for the property "bounds" with a change dictionary like this:
observeValueForKeyPath
[self updatePlaceholderTextView];
{ kind = 1; new = "NSRect: {{..., ...}, {..., ...}}"; }
It creates an infinite loop
Though it can be mitigated without changing pod's code
observeValueForKeyPath
in the UITextView+Placeholder.m calls[self updatePlaceholderTextView];
which performs bounds change. ThenobserveValueForKeyPath
is called again for the property "bounds" with a change dictionary like this:It creates an infinite loop