Does UIWebView have to be stripped from code or just not used?

Hi,

We built parallel functionality in our app to use WKWebView or UIWebView, and a master control to use one or the other. We did this so that we could support WKWebView on later iOS devices, while keeping UIWebView for older devices.

With the upcoming EOL for UIWebView, if we disabled UIWebView with the master switch, will Apple still reject app updates because UIWebView is still within our codebase? Or can we successfully submit updates if the compiled app only uses WKWebView?

Thanks,
Jason
For anyone interested. I found a blog discussing a 'WKWebViewOnly' setting for Cordova which should strip out any references to UIWebView at compile time. Caveat from the article is that any plugins which may be using UIWebView would still need to be updated. I can't post links, so just google for: "How To Use 'WKWebViewOnly'".
Does UIWebView have to be stripped from code or just not used?
 
 
Q