Contents

circle

A variant that encapsulates the symbol in a circle.

Declaration

static let circle: SymbolVariants

Discussion

Use this variant with a call to the symbolVariant(_:) modifier to draw symbols in a circle, for those symbols that have a circle variant:

VStack(spacing: 20) {
    HStack(spacing: 20) {
        Image(systemName: "flag")
        Image(systemName: "heart")
        Image(systemName: "bolt")
        Image(systemName: "star")
    }
    HStack(spacing: 20) {
        Image(systemName: "flag")
        Image(systemName: "heart")
        Image(systemName: "bolt")
        Image(systemName: "star")
    }
    .symbolVariant(.circle)
}

[Image]

See Also

Getting symbol variants