Skip to content

Commit 32db431

Browse files
Public init for LinkAttachmentContainer
1 parent 2cbb9ba commit 32db431

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
### ✅ Added
77
- Added factory method for customizing the message list container's modifier
88
- Option to customize the date separation logic in the message list
9+
- Public init for `LinkAttachmentContainer`
910

1011
# [4.33.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.33.0)
1112
_June 09, 2023_

Sources/StreamChatSwiftUI/ChatChannel/MessageList/LinkAttachmentView.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ public struct LinkAttachmentContainer<Factory: ViewFactory>: View {
2020
@Binding var scrolledId: String?
2121

2222
private let padding: CGFloat = 8
23+
24+
public init(
25+
factory: Factory,
26+
message: ChatMessage,
27+
width: CGFloat,
28+
isFirst: Bool,
29+
scrolledId: Binding<String?>
30+
) {
31+
self.factory = factory
32+
self.message = message
33+
self.width = width
34+
self.isFirst = isFirst
35+
_scrolledId = scrolledId
36+
}
2337

2438
public var body: some View {
2539
VStack(

0 commit comments

Comments
 (0)