fix: add public to init

This commit is contained in:
greyder 2022-06-05 10:59:31 +08:00
parent 8379eaf456
commit 9cc9d5224a
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ public struct BackgroundView<Content: View>: View {
let color: Color
var content: () -> Content
init(color: Color = .background, @ViewBuilder content: @escaping () -> Content) {
public init(color: Color = .background, @ViewBuilder content: @escaping () -> Content) {
self.color = color
self.content = content
}