Skip to content

Commit

Permalink
fix: react to frame changes
Browse files Browse the repository at this point in the history
  • Loading branch information
finnp committed May 9, 2024
1 parent 7841372 commit 72b8e39
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ios/HtmlTextViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ class HTMLTextView: UITextView {
}
}

override var frame: CGRect {
didSet {
if self.frame != oldValue {
self.updateSizeToReact()
}
}
}

private func updateContent() {
guard let html = html else { return }
let data = Data(html.utf8)
Expand All @@ -55,5 +63,4 @@ class HTMLTextView: UITextView {
"height": size.height
])
}

}

0 comments on commit 72b8e39

Please sign in to comment.