From 78aa0e39746286a857a7c9231716902db59ec325 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 13 Dec 2024 17:38:34 +0200 Subject: [PATCH] Add a comment on bubble background modifier default parameter values. --- .../Timeline/View/Style/TimelineItemBubbleBackground.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemBubbleBackground.swift b/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemBubbleBackground.swift index a00a1c4d4c..156f5864a3 100644 --- a/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemBubbleBackground.swift +++ b/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemBubbleBackground.swift @@ -9,6 +9,10 @@ import Compound import SwiftUI extension View { + /// - Parameters: + /// - isOutgoing: rounds the corners according to the side it shows on, defaults to true + /// - insets: defaults to what we use for file timeline items, text uses custom values + /// - color: self explanatory, defaults to subtle secondary func bubbleBackground(isOutgoing: Bool = true, insets: EdgeInsets = .init(top: 8, leading: 12, bottom: 8, trailing: 12), color: Color? = .compound.bgSubtleSecondary) -> some View {