From 58fa903879546950c7c4b065a99dfd900f433d24 Mon Sep 17 00:00:00 2001 From: Miranda Wilson Date: Tue, 13 Feb 2024 12:00:05 +0000 Subject: [PATCH] Make EmitterEvent constructor public (close #876) * Add public to constructor * Add objc annotation --- Sources/Snowplow/Emitter/EmitterEvent.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Snowplow/Emitter/EmitterEvent.swift b/Sources/Snowplow/Emitter/EmitterEvent.swift index 76f444a2c..c5e9139a9 100644 --- a/Sources/Snowplow/Emitter/EmitterEvent.swift +++ b/Sources/Snowplow/Emitter/EmitterEvent.swift @@ -18,7 +18,8 @@ public class EmitterEvent: NSObject { private(set) var payload: Payload private(set) var storeId: Int64 - init(payload: Payload, storeId: Int64) { + @objc + public init(payload: Payload, storeId: Int64) { self.payload = payload self.storeId = storeId }