Skip to content

Add view factory methods for customising headers in GalleryView and VideoPlayerView #837

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

Merged
merged 4 commits into from
May 27, 2025

Conversation

laevandus
Copy link
Contributor

@laevandus laevandus commented May 26, 2025

🔗 Issue Links

Resolves: IOS-880

🎯 Goal

  • Enable customising headers in GalleryView and VideoPlayerView

📝 Summary

  • Add view factory methods for creating GalleryHeaderView in GalleryView and VideoPlayerView

🛠 Implementation

🧪 Manual Testing Notes

N/A

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • Changelog is updated with new localization keys
  • New code is covered by unit tests
  • Documentation has been updated in the docs-content repo

@laevandus laevandus requested a review from a team as a code owner May 26, 2025 10:59
@laevandus laevandus added the ✅ Feature An issue or PR related to a feature label May 26, 2025
@laevandus laevandus force-pushed the add/gallery-header-view-factory branch from f8981aa to 362e904 Compare May 26, 2025 11:01
@laevandus laevandus marked this pull request as draft May 26, 2025 11:01
@laevandus laevandus force-pushed the add/gallery-header-view-factory branch from 362e904 to 39d8e05 Compare May 26, 2025 11:04
@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented May 26, 2025

SDK Size

title develop branch diff status
StreamChatSwiftUI 8.23 MB 8.23 MB -2 KB 🚀

@laevandus laevandus changed the title Add makeGalleryHeaderView for customising header view in GalleryView and VideoPlayerView Add view factory methods for customising headers in GalleryView and VideoPlayerView May 26, 2025
@laevandus laevandus force-pushed the add/gallery-header-view-factory branch from 39d8e05 to 4a9f6c0 Compare May 26, 2025 11:05
@laevandus laevandus marked this pull request as ready for review May 26, 2025 11:06
@@ -982,7 +982,7 @@ class ViewFactory_Tests: StreamChatTestCase {
)

// Then
XCTAssert(view is GalleryView)
XCTAssert(view is GalleryView<DefaultViewFactory>)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add tests to check the returned type of the new methods? Just to protect against breaking changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

@laevandus laevandus enabled auto-merge (squash) May 27, 2025 09:34
Copy link

@laevandus laevandus merged commit 3bd6162 into develop May 27, 2025
11 checks passed
@laevandus laevandus deleted the add/gallery-header-view-factory branch May 27, 2025 10:00
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Feature An issue or PR related to a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants