Skip to content

Commit

Permalink
fix: make initialisers public
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachenyee committed Sep 24, 2023
1 parent 6e630ef commit 0ec5d21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public struct ScreenCaptureRedactionView<Content: View, ReplacementView: View>:
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()
}
Expand Down

0 comments on commit 0ec5d21

Please sign in to comment.