Skip to content

Commit

Permalink
added dismiss method to viewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
ab1470 committed Nov 8, 2024
1 parent a776f21 commit e8ddcbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ class KlaviyoWebViewModel: KlaviyoWebViewModeling {
func handleScriptMessage(_ message: WKScriptMessage) {
// TODO: handle script message
}

// MARK: handle user events

func dismiss() {
// TODO: handle dismiss
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ protocol KlaviyoWebViewModeling {

func handleNavigationEvent(_ event: WKNavigationEvent)
func handleScriptMessage(_ message: WKScriptMessage)
func dismiss()
}

0 comments on commit e8ddcbe

Please sign in to comment.