summaryrefslogtreecommitdiff
path: root/Hutch/Views/Repositories/ReadmeView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-19 17:05:16 -0500
committerChristian Cleberg <[email protected]>2026-03-19 17:05:16 -0500
commit10d68934d4f45bf60e1736371ff790c50600198d (patch)
treec70ca00041a884274d7b857c10a7b83d452d21b0 /Hutch/Views/Repositories/ReadmeView.swift
parentb82bbeeea48ad27832a355c2a41408559c411104 (diff)
downloadhutch-2.1.tar.gz
hutch-2.1.tar.bz2
hutch-2.1.zip
fix README height update and settings save alertsv2.1
Diffstat (limited to 'Hutch/Views/Repositories/ReadmeView.swift')
-rw-r--r--Hutch/Views/Repositories/ReadmeView.swift6
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
+ }
+ }
}
}