From 0ec5d21872778de55f32cd873a159cff56ec304f Mon Sep 17 00:00:00 2001 From: Jia Chen Date: Mon, 25 Sep 2023 03:28:28 +0800 Subject: [PATCH] fix: make initialisers public --- Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift b/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift index 7e97374..0368f98 100644 --- a/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift +++ b/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift @@ -19,13 +19,13 @@ public struct ScreenCaptureRedactionView: var content: Content var replacementView: ReplacementView - init(@ViewBuilder content: @escaping (() -> Content), + public init(@ViewBuilder content: @escaping (() -> Content), @ViewBuilder replacingWith replacementView: @escaping (() -> ReplacementView)) { self.content = content() self.replacementView = replacementView() } - init(@ViewBuilder content: @escaping (() -> Content)) where ReplacementView == EmptyView { + public init(@ViewBuilder content: @escaping (() -> Content)) where ReplacementView == EmptyView { self.content = content() self.replacementView = EmptyView() }