Skip to content

Commit

Permalink
Restore cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Jan 31, 2024
1 parent c82c64c commit 3ff2094
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/MarkdownTextInputDecoratorView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ - (void)willMoveToWindow:(UIWindow *)newWindow
}
if (_textView != nil) {
[_textView setMarkdownUtils:nil];
// if (_textView.layoutManager != nil && [object_getClass(_textView.layoutManager) isEqual:[MarkdownLayoutManager class]]) {
// [_textView.layoutManager setValue:nil forKey:@"markdownUtils"];
// object_setClass(_textView.layoutManager, [NSLayoutManager class]);
// }
if (_textView.layoutManager != nil && [object_getClass(_textView.layoutManager) isEqual:[MarkdownLayoutManager class]]) {
[_textView.layoutManager setValue:nil forKey:@"markdownUtils"];
object_setClass(_textView.layoutManager, [NSLayoutManager class]);
}
}
}

Expand Down

0 comments on commit 3ff2094

Please sign in to comment.