Sha256: 543b58ee693fde5161ddc4b29102865dab74936c83ce989f315a73e5b0e305c2
Contents?: true
Size: 640 Bytes
Versions: 18
Compression:
Stored size: 640 Bytes
Contents
import Foundation import WebKit import Strada enum WebViewPool { static var shared = WKProcessPool() } extension WKWebViewConfiguration { static var appConfiguration: WKWebViewConfiguration { let stradaSubstring = Strada.userAgentSubstring(for: BridgeComponent.allTypes) let userAgent = "Turbo Native iOS \(stradaSubstring)" let configuration = WKWebViewConfiguration() configuration.processPool = WebViewPool.shared configuration.applicationNameForUserAgent = userAgent configuration.defaultWebpagePreferences?.preferredContentMode = .mobile return configuration } }
Version data entries
18 entries across 9 versions & 1 rubygems