# Sizing a WebView Inside a SwiftUI ScrollView
Ilyas Hallak 4 min read
Why a WebView in a SwiftUI ScrollView needs its content height reported from JavaScript, and how to measure it reliably without flicker.
Why a WebView in a SwiftUI ScrollView needs its content height reported from JavaScript, and how to measure it reliably without flicker.
How Swift and JavaScript communicate in a WebView, and why the native iOS 26 WebView drops the message handler channel and forces you to poll.
How a tiny router lets my Readeck reader run the new iOS 26 SwiftUI WebView on new devices and the proven WKWebView everywhere else, with a switch for the user as a bonus.