Skip to content

Commit

Permalink
handle close button tap
Browse files Browse the repository at this point in the history
  • Loading branch information
ab1470 committed Dec 18, 2024
1 parent 3e19b19 commit 511ca6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class KlaviyoWebViewModel: KlaviyoWebViewModeling {
}

func handleScriptMessage(_ message: WKScriptMessage) {
// TODO: handle script message
if message.name == "closeHandler" {
// TODO: handle close button tap
print("user tapped close button")
}
}
}

0 comments on commit 511ca6d

Please sign in to comment.