File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Sources/StreamChatSwiftUI/ChatChannel/Composer Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import SwiftUI
7
7
8
8
/// View for the photo attachment picker.
9
9
public struct PhotoAttachmentPickerView : View {
10
+
10
11
@Injected ( \. colors) private var colors
11
12
12
13
@StateObject var assetLoader = PhotoAssetLoader ( )
@@ -17,6 +18,16 @@ public struct PhotoAttachmentPickerView: View {
17
18
18
19
let columns = [ GridItem ( . adaptive( minimum: 120 ) , spacing: 2 ) ]
19
20
21
+ public init (
22
+ assets: PHFetchResultCollection ,
23
+ onImageTap: @escaping ( AddedAsset ) -> Void ,
24
+ imageSelected: @escaping ( String ) -> Bool
25
+ ) {
26
+ self . assets = assets
27
+ self . onImageTap = onImageTap
28
+ self . imageSelected = imageSelected
29
+ }
30
+
20
31
public var body : some View {
21
32
ScrollView {
22
33
LazyVGrid ( columns: columns, spacing: 2 ) {
You can’t perform that action at this time.
0 commit comments