Skip to content

Commit e8a21f7

Browse files
authored
Apply MainActor changes from Appearance (#1391)
1 parent 842bbd2 commit e8a21f7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/StreamChatSwiftUI/ChatMessageList/MessageBubble.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ extension ChatMessage {
274274
}
275275
}
276276

277-
func bubbleBorder(colors: Appearance.ColorPalette) -> Color {
277+
@MainActor func bubbleBorder(colors: Appearance.ColorPalette) -> Color {
278278
isSentByCurrentUser ? colors.chatBorderOutgoing.toColor : colors.chatBorderIncoming.toColor
279279
}
280280

Sources/StreamChatSwiftUI/CommonViews/StreamButton.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ struct StreamButtonStyle: ButtonStyle {
269269
}
270270
}
271271

272-
private struct SizeMetrics {
272+
@MainActor private struct SizeMetrics {
273273
let horizontalPaddingWithLabel: CGFloat
274274
let horizontalPaddingIconOnly: CGFloat
275275
let verticalPadding: CGFloat
@@ -300,7 +300,7 @@ struct StreamButtonStyle: ButtonStyle {
300300
}
301301
}
302302

303-
private extension StreamButtonRole {
303+
@MainActor private extension StreamButtonRole {
304304
func backgroundColor(colors: Appearance.ColorPalette) -> UIColor {
305305
switch self {
306306
case .primary:

0 commit comments

Comments
 (0)