Skip to content

Commit

Permalink
Merge pull request #20 from cybozu/fix-remakeable
Browse files Browse the repository at this point in the history
Run applyModifiers() after remaking
  • Loading branch information
b1ackturtle authored Jul 26, 2024
2 parents fcecd54 + e2cd140 commit 3a61507
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/WebUI/WebView+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ extension WebView: View {

@MainActor
private func makeView() -> Remakeable<EnhancedWKWebView> {
let webView = Remakeable {
EnhancedWKWebView(frame: .zero, configuration: parent.configuration)
let webView = Remakeable<EnhancedWKWebView> {
let wrappedView = EnhancedWKWebView(frame: .zero, configuration: parent.configuration)
parent.applyModifiers(to: wrappedView)
return wrappedView
}
setUpWebViewProxy(webView)
parent.applyModifiers(to: webView.wrappedValue)
Expand Down

0 comments on commit 3a61507

Please sign in to comment.