Fix snapshotting

This commit is contained in:
Ali
2023-11-11 17:48:00 +04:00
parent c2c0584dc9
commit 770cadf544
8 changed files with 40 additions and 10 deletions

View File

@@ -55,3 +55,5 @@ void applyKeyboardAutocorrection(UITextView * _Nonnull textView);
- (void)fixScrollDisplayLink;
@end
void snapshotViewByDrawingInContext(UIView * _Nonnull view);

View File

@@ -483,3 +483,7 @@ void applyKeyboardAutocorrection(UITextView * _Nonnull textView) {
}
@end
void snapshotViewByDrawingInContext(UIView * _Nonnull view) {
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:false];
}