First of all let me point that I am just the beginner and that I might be missing something out, but I really need help figuring out how to get things done.
I've been able to parse xml from web address using https://github.com/tadija/AEXML parser.
Next, on WKWebView I'm using .loadHTMLString method to take only the content node of xml:
webView.loadHTMLString(xml.root["channel"]["item"]["content"].string, baseURL: nil)
Now, my webView shows the content, but I need to format the style. I've been searching for hours now and the closest answer I could find is that i should use .css file, which makes sense and I already have custom style css file, but I can not manage to implement it. As far as I could conclude from similar questions either: in .loadHTMLString method I should use that custom css file in baseURL (if that is the case I would appreciate if someone could explain how to do it); or the answer lies in WKUserContentController with which i'm quite unfamiliar.
I would greatly appreciate any help.
Thanks a lot.