Skip to content

Commit 2e6f62f

Browse files
Make MediaViewsOptions initializer public (#899)
1 parent cacb699 commit 2e6f62f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1515
- `ChannelInfoDivider`
1616
- `ChatInfoDirectChannelView`
1717
- `ChatInfoParticipantsView`
18+
- Make `MediaViewsOptions` initializer public [#899](https://github.com/GetStream/stream-chat-swiftui/pull/899)
1819

1920
# [4.82.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.82.0)
2021
_July 16, 2025_

Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,4 +484,8 @@ enum MediaAttachmentType {
484484
public struct MediaViewsOptions {
485485
/// The index of the selected media item.
486486
public let selectedIndex: Int
487+
488+
public init(selectedIndex: Int) {
489+
self.selectedIndex = selectedIndex
490+
}
487491
}

0 commit comments

Comments
 (0)