Skip to content

Conversation

nuno-vieira
Copy link
Member

@nuno-vieira nuno-vieira commented Oct 6, 2025

🔗 Issue Links

https://linear.app/stream/issue/IOS-1184/expose-media-attachment-properties

🎯 Goal

Expose MediaAttachment properties and initializer.

Changes MediaAttachmentType to a struct so that it can be extendable.

🧪 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

@nuno-vieira nuno-vieira requested a review from a team as a code owner October 6, 2025 15:11
@nuno-vieira nuno-vieira enabled auto-merge (squash) October 6, 2025 15:21
@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented Oct 6, 2025

SDK Size

title develop branch diff status
StreamChatSwiftUI 9.5 MB 9.5 MB 0 KB 🟢

Copy link

github-actions bot commented Oct 6, 2025

Public Interface

+ public struct MediaAttachmentType: RawRepresentable  
+ 
+   public let rawValue: String
+   public static let image
+   public static let video
+   
+ 
+   public init(rawValue: String)



 public struct MediaAttachment: Identifiable, Equatable  
-   public var id: String
+   public let url: URL
-   
+   public let type: MediaAttachmentType
- 
+   public var uploadingState: AttachmentUploadingState?
-   public static func ==(lhs: MediaAttachment,rhs: MediaAttachment)-> Bool
+   public var id: String
+   
+ 
+   public init(url: URL,type: MediaAttachmentType,uploadingState: AttachmentUploadingState? = nil)
+   
+ 
+   public static func ==(lhs: MediaAttachment,rhs: MediaAttachment)-> Bool

@nuno-vieira nuno-vieira disabled auto-merge October 6, 2025 21:14
@nuno-vieira nuno-vieira merged commit 8512624 into develop Oct 6, 2025
4 of 5 checks passed
@nuno-vieira nuno-vieira deleted the add/expose-media-attachment branch October 6, 2025 21:14
Copy link

sonarqubecloud bot commented Oct 6, 2025

@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants