×

Modifier: Foreground Color

iOS 14 +

Notes

Add a foreground color. You can find more info at https://widgetpack.app/documentation

Syntax

modifierForegroundColor(foregroundColor: <#Object (View)#>, view: <#Object (View)#>)

Example

modifierForegroundColor(foregroundColor: View(identifier: "View1", displayString: "View One"), view: View(identifier: "View1", displayString: "View One"))