This repo contains an example iOS project that demonstrates how to determine the content size of a WKWebView that loads HTML and local CSS with a custom font. A detailed explanation about the implementation is available as a blog-post on my website.
License
WKWebViewContentSizeCalculation-Example is licensed under the MIT license. Check the LICENSE file for details.