Toast styles
Configure transient banners by customizing background, text, accent, and layout.
Styles transient banners shown by components.
public struct Toast {
public var background: Color
public var textColor: Color
public var accentColor: Color
public var borderColor: Color
public var cornerRadius: CGFloat
public var shadowColor: Color
public var shadowRadius: CGFloat
public var shadowYOffset: CGFloat
public var horizontalPadding: CGFloat
public var verticalPadding: CGFloat
}
Example:
let toast = SeamTheme.Toast.default.with(
background: Color(UIColor.secondarySystemBackground),
borderColor: Color(UIColor.separator),
cornerRadius: 14
)
Last updated
Was this helpful?