diff options
Diffstat (limited to 'Hutch/Views/Repositories/ReadmeView.swift')
| -rw-r--r-- | Hutch/Views/Repositories/ReadmeView.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Hutch/Views/Repositories/ReadmeView.swift b/Hutch/Views/Repositories/ReadmeView.swift index 576adfc..3777cdb 100644 --- a/Hutch/Views/Repositories/ReadmeView.swift +++ b/Hutch/Views/Repositories/ReadmeView.swift @@ -1108,7 +1108,11 @@ private struct HTMLWebViewRepresentable: UIViewRepresentable { if let cachedHeight = HTMLWebViewCoordinator.heightCache.object(forKey: wrapped as NSString)?.doubleValue { let height = CGFloat(cachedHeight) if abs(dynamicHeight - height) > 0.5 { - dynamicHeight = height + DispatchQueue.main.async { + if abs(self.dynamicHeight - height) > 0.5 { + self.dynamicHeight = height + } + } } } |
