How use reader view in WebKit

I'm trying to create a simple application for reading my website. I wanted to use WKWebView, but I also want to use reader view as in safari, but I can not find anywhere how to do it. I found just the SFSafariViewController that should allow such a view, but it is not meant for iOS 11 anymore.

What do you mean with it is not meant for iOS 11 anymore ?

As far as I know, the way of enabling Reader mode has changed in iOS 11, but `SFSafariViewController` still supports Reader mode.

What do you mean with it is not meant for iOS 11 anymore ?

My best guess is that JosifCS has noticed that

-initWithURL:entersReaderIfAvailable:
was deprecated in the iOS 11 SDK. There is, however, a replacement,
-initWithURL:configuration:
, that lets you customise various properties, including reader mode (via the
entersReaderIfAvailable
property).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
How use reader view in WebKit
 
 
Q