-
Notifications
You must be signed in to change notification settings - Fork 99
Exposed factory methods for gallery and video player view #808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
SDK Size
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, just added some comments to see if we can improve the "future-proofness" of the API
Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift
Outdated
Show resolved
Hide resolved
@@ -445,6 +445,32 @@ extension ViewFactory { | ||
) | ||
} | ||
|
||
public func makeGalleryView( | ||
mediaAttachments: [MediaAttachment], | ||
author: ChatUser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like mentioned in the previous comment maybe better to expose the whole message object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ✅
…iftui into gallery-factory-method
|
🔗 Issue Links
Resolves https://linear.app/stream/issue/IOS-788/custom-attachmentsgallery-viewer.
🎯 Goal
Describe why we are making this change.
📝 Summary
Provide bullet points with the most important changes in the codebase.
🛠 Implementation
Provide a detailed description of the implementation and explain your decisions if you find them relevant.
🎨 Showcase
Add relevant screenshots and/or videos/gifs to easily see what this PR changes, if applicable.
🧪 Manual Testing Notes
Explain how this change can be tested manually, if applicable.
☑️ Contributor Checklist
docs-content
repo