Skip to content

Commit 66ee1e3

Browse files
Updated font handling in AttachmentTextView
1 parent 3159ae6 commit 66ee1e3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
- Video and giphy attachments now use `makeMessageViewModifier`
88
- Updated scalling of avatar images
99

10+
### 🐞 Fixed
11+
- `AttachmentTextView` respects configured body font
12+
1013
# [4.34.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.34.0)
1114
_July 06, 2023_
1215

Sources/StreamChatSwiftUI/ChatChannel/MessageList/ImageAttachmentView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public struct ImageAttachmentContainer<Factory: ViewFactory>: View {
7878
public struct AttachmentTextView: View {
7979

8080
@Injected(\.colors) private var colors
81+
@Injected(\.fonts) private var fonts
8182

8283
var message: ChatMessage
8384

@@ -88,6 +89,7 @@ public struct AttachmentTextView: View {
8889
public var body: some View {
8990
HStack {
9091
Text(message.adjustedText)
92+
.font(fonts.body)
9193
.standardPadding()
9294
.foregroundColor(textColor(for: message))
9395
.fixedSize(horizontal: false, vertical: true)

0 commit comments

Comments
 (0)