From 10d68934d4f45bf60e1736371ff790c50600198d Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 19 Mar 2026 17:05:16 -0500 Subject: fix README height update and settings save alerts --- Hutch/Views/Repositories/ReadmeView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Hutch/Views/Repositories/ReadmeView.swift') 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 + } + } } } -- cgit v1.2.3