mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix snapshotting
This commit is contained in:
@@ -55,3 +55,5 @@ void applyKeyboardAutocorrection(UITextView * _Nonnull textView);
|
||||
- (void)fixScrollDisplayLink;
|
||||
|
||||
@end
|
||||
|
||||
void snapshotViewByDrawingInContext(UIView * _Nonnull view);
|
||||
|
||||
@@ -483,3 +483,7 @@ void applyKeyboardAutocorrection(UITextView * _Nonnull textView) {
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
void snapshotViewByDrawingInContext(UIView * _Nonnull view) {
|
||||
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:false];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user