×

Modifier: Border

iOS 14 +

Notes

Add a border to a view. The border is inset, so you should add some padding if you want it around your view. You can use gradients and colors to specify the border. You can find more info at https://widgetpack.app/documentation

Syntax

modifierBorder(view: <#Object (View)#>, content: <#Object (View)#>, width: <#Double#>)

Example

modifierBorder(view: View(identifier: "View1", displayString: "View One"), content: View(identifier: "View1", displayString: "View One"), width: 34.3)