Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update, to set the correct params name on the example code #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Warmed-up WebView may have a lifespan. In case the end of life of a WebView happ

````swift
let url = URL(string: "https://duckduckgo.com")!
WKWebViewHeater.shared.warmUp(with: url, lifespan: 30.0) //WebView will be automatically reloaded every 30 seconds.
WKWebViewHeater.shared.warmUp(with: url, livespan: 30.0) //WebView will be automatically reloaded every 30 seconds.
````

### Notes
Expand All @@ -93,7 +93,7 @@ WKWebViewHeater.shared.warmUp(with: url, lifespan: 30.0) //WebView will be auto
// Declare a variable that holds the WebView
private lazy var webView: WKWebView = {
let webView: WKWebView!
webView = WKWebViewHeater.shared.dequeue(url: urlString)
webView = WKWebViewHeater.shared.dequeue(with: url)

// Set other properties of the WebView
webView.configuration.allowsInlineMediaPlayback = true
Expand Down