๐Ÿ”ฐview modifier

SwiftUI โŸฉ view โŸฉ modifier

A view modifier is used to customize the appearanceโ•ฑbehavior of a view. Since modifiers are applied in order, swapping their positions can change the appearanceโ•ฑbehavior of the resulting view.

Rectangle()
    // โญ๏ธ view modifiers
    .foregroundColor(.blue)    // change appearance (foreground color)
    .border(.green)            // change appearance (border color)

Last updated