Dynamically adding css to WebViews in Swift

Photo of colouring pencils by Jess Watters on Unsplash

This week, I needed to figure out how to dynamically add css to a webView in iOS and it was much easier than I thought it would be. All you need to do is make use of the webViewdidFinish function in the WKNavigationDelegate and evaluateJavaScript View the code on Gist. This code will change the … Continue reading “Dynamically adding css to WebViews in Swift”