From e8ddcbe3c1db515ee35fe26c1920f69098499802 Mon Sep 17 00:00:00 2001 From: Andrew Balmer Date: Mon, 28 Oct 2024 16:42:42 -0400 Subject: [PATCH] added `dismiss` method to viewModel --- Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift | 6 ++++++ .../KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModeling.swift | 1 + 2 files changed, 7 insertions(+) diff --git a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift index 1f3a6e99..e80e0827 100644 --- a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift +++ b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModel.swift @@ -41,4 +41,10 @@ class KlaviyoWebViewModel: KlaviyoWebViewModeling { func handleScriptMessage(_ message: WKScriptMessage) { // TODO: handle script message } + + // MARK: handle user events + + func dismiss() { + // TODO: handle dismiss + } } diff --git a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModeling.swift b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModeling.swift index 5c34cfac..dc725139 100644 --- a/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModeling.swift +++ b/Sources/KlaviyoUI/KlaviyoWebView/KlaviyoWebViewModeling.swift @@ -20,4 +20,5 @@ protocol KlaviyoWebViewModeling { func handleNavigationEvent(_ event: WKNavigationEvent) func handleScriptMessage(_ message: WKScriptMessage) + func dismiss() }