Skip to content

Commit

Permalink
Add a comment on bubble background modifier default parameter values.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Dec 13, 2024
1 parent 13875e6 commit 78aa0e3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 78aa0e3

Please sign in to comment.