We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7619826 commit f9a50e8Copy full SHA for f9a50e8
Sources/StreamChatSwiftUI/CommonViews/DiscardButtonView.swift
@@ -5,13 +5,17 @@
5
import SwiftUI
6
7
/// View for the discard button.
8
-struct DiscardButtonView: View {
+public struct DiscardButtonView: View {
9
10
@Injected(\.images) private var images
11
12
var color = Color.black.opacity(0.8)
13
14
- var body: some View {
+ public init(color: Color = Color.black.opacity(0.8)) {
15
+ self.color = color
16
+ }
17
+
18
+ public var body: some View {
19
ZStack {
20
Circle()
21
.fill(Color.white)
0 commit comments