Skip to content

Commit f9a50e8

Browse files
Made DiscardButtonView public
1 parent 7619826 commit f9a50e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/StreamChatSwiftUI/CommonViews/DiscardButtonView.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55
import SwiftUI
66

77
/// View for the discard button.
8-
struct DiscardButtonView: View {
8+
public struct DiscardButtonView: View {
99

1010
@Injected(\.images) private var images
1111

1212
var color = Color.black.opacity(0.8)
1313

14-
var body: some View {
14+
public init(color: Color = Color.black.opacity(0.8)) {
15+
self.color = color
16+
}
17+
18+
public var body: some View {
1519
ZStack {
1620
Circle()
1721
.fill(Color.white)

0 commit comments

Comments
 (0)