Skip to content

Commit

Permalink
Merge pull request #29 from cybozu/fix-doc-WebViewReader
Browse files Browse the repository at this point in the history
Replaced url with request in the WebViewReader documentation.
  • Loading branch information
Kyome22 authored Oct 21, 2024
2 parents 901503b + 54e5940 commit 8aa916e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/ExamplesUITests/ExamplesUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ final class ExamplesUITests: XCTestCase {
app.launch()

// MARK: WebViewProxy
XCTContext.runActivity(named: "WebViewProxy.load(url:)") { _ in
XCTContext.runActivity(named: "WebViewProxy.load(request:)") { _ in
XCTAssertTrue(app.webViews.staticTexts["History"].waitForExistence(timeout: 15))
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/WebUI/WebViewReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SwiftUI
/// A view that provides programmatic control by working with a proxy to access a known web view within a view hierarchy.
///
/// The web view reader's content view builder receives a ``WebViewProxy`` instance;
/// you use the proxy's ``WebViewProxy/load(url:)`` to perform loading the URL.
/// you use the proxy's ``WebViewProxy/load(request:)`` to perform loading the URL.
///
/// The following example creates a ``WebView`` that loads [example.com](https://www.example.com) when it appears.
///
Expand All @@ -12,7 +12,7 @@ import SwiftUI
/// WebViewReader { proxy in
/// WebView()
/// .onAppear {
/// proxy.load(url: URL(string: "https://www.example.com")!)
/// proxy.load(request: URLRequest(url: URL(string: "https://www.example.com")!))
/// }
/// }
/// }
Expand Down

0 comments on commit 8aa916e

Please sign in to comment.