I'm trying to change the behavior of a variable within a class.
To be more precise, I have a 'UIWebView' which has a 'scrollview' property.
I need to override the 'setContentInset' of this scrollview, however I'm not sure how to do this.
The docs show me the UIWebView has this:
var scrollView: UIScrollView { get }
So I can't simply create my own and set it there.
My question is, how do I override the 'setContentInset' from the UIWebView's scrollview?
Edit:
2 clarifications.
I know the UIWebView is NOT supposed to be subclassed, as per the documentation's subclassing notes.
My goal is to fix the "pull down to refresh" jumpy behavior following this answer that I already implemented on my app's other scrollviews.