Skip to content

Commit 4ab4847

Browse files
committed
add extension View for MultimodalAttachment
1 parent c170366 commit 4ab4847

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

firebaseai/FirebaseAIExample/Features/Multimodal/Models/MultimodalAttachment.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ public struct MultimodalAttachment: Attachment, Equatable {
7272
}
7373
}
7474

75-
extension MultimodalAttachment {
76-
@ViewBuilder
77-
public func previewView() -> any View {
75+
extension MultimodalAttachment: View {
76+
public var body: some View {
7877
AttachmentPreviewCard(attachment: self)
7978
}
8079
}

0 commit comments

Comments
 (0)