looking for some solutions? You are welcome.

SOLVED: Injecting a CSS file into a WebKit in Xcode


Basically I have a WKWebView app in Xcode 10 that has absolutely no frills. There's a website that I'm loading (not mine, but has information I built on it). I only want a certain section of the site to load and would like to essentially use CSS to hide and re-design the parts of the page that I want.

How and where can I add a style.css file so that I can manipulate the page that loads in the web view??

Sorry, this isn't my forte and I'm new to this.

Preferably I'd like this CSS file to be local and built into the app but at this point I'm fine with having my CSS file being pulled remotely from a separate website.


Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots

No comments: