From 944c3c44c3537e6e708179e5cef5b3a3b549b64c Mon Sep 17 00:00:00 2001 From: Brandon Sneed Date: Wed, 15 May 2024 05:56:17 -0700 Subject: [PATCH] Make `shared()` public. (#347) --- Sources/Segment/Analytics.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Segment/Analytics.swift b/Sources/Segment/Analytics.swift index 031ae6a..feff5d5 100644 --- a/Sources/Segment/Analytics.swift +++ b/Sources/Segment/Analytics.swift @@ -39,7 +39,7 @@ public class Analytics { In the case of a dead instance, an assert will be thrown when in DEBUG builds to assist developers in knowning that `shared()` is being called too soon. */ - static func shared() -> Analytics { + public static func shared() -> Analytics { if let a = firstInstance { if a.isDead == false { return a