Show an activity indicator until the preview has loaded.

This commit is contained in:
Doug
2021-09-02 17:37:48 +01:00
parent 2e795607bb
commit 885f3208bf
10 changed files with 88 additions and 32 deletions
@@ -1070,8 +1070,9 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
return;
}
// Check that the preview hasn't been dismissed already.
if ([URLPreviewManager.shared hasClosedPreviewFrom:lastComponent.event])
// Don't show the preview if it has been dismissed already.
self.showURLPreview = ![URLPreviewManager.shared hasClosedPreviewFrom:lastComponent.event];
if (!self.showURLPreview)
{
return;
}