mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Add a comment on bubble background modifier default parameter values.
This commit is contained in:
committed by
Stefan Ceriu
parent
13875e61f8
commit
78aa0e3974
@@ -9,6 +9,10 @@ import Compound
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
extension View {
|
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,
|
func bubbleBackground(isOutgoing: Bool = true,
|
||||||
insets: EdgeInsets = .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
insets: EdgeInsets = .init(top: 8, leading: 12, bottom: 8, trailing: 12),
|
||||||
color: Color? = .compound.bgSubtleSecondary) -> some View {
|
color: Color? = .compound.bgSubtleSecondary) -> some View {
|
||||||
|
|||||||
Reference in New Issue
Block a user