diff options
| author | Christian Cleberg <[email protected]> | 2026-03-19 17:05:16 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-19 17:05:16 -0500 |
| commit | 10d68934d4f45bf60e1736371ff790c50600198d (patch) | |
| tree | c70ca00041a884274d7b857c10a7b83d452d21b0 /Hutch/Views/Repositories/ReadmeView.swift | |
| parent | b82bbeeea48ad27832a355c2a41408559c411104 (diff) | |
| download | hutch-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.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 + } + } } } |
