File tree Expand file tree Collapse file tree
Sources/StreamChatSwiftUI Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments