<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SquareAzimuth/Set",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13SquareAzimuthO3SetV"
  },
  "title" : "SquareAzimuth.Set"
}
-->

# SquareAzimuth.Set

A set of horizontal directions that specify how someone can look at a
volume.

```
@frozen struct Set
```

## Overview

Combine the [`SquareAzimuth`](/documentation/SwiftUI/SquareAzimuth) constants to name several directions at
once. Pass a set to [`supportedVolumeViewpoints(_:)`](/documentation/SwiftUI/View/supportedVolumeViewpoints(_:)) to say which
sides the window bar and ornaments of a volume should follow someone to.

```
VolumeContentView()
    .supportedVolumeViewpoints([.front, .left])
```

A volume supports [`all`](/documentation/SwiftUI/SquareAzimuth/Set/all) unless you narrow it. Narrow
the set when your content only makes sense from certain sides, such as
a model with a defined back that you never want someone to see the
controls through.

## Topics

### Initializers

[`init(SquareAzimuth)`](/documentation/SwiftUI/SquareAzimuth/Set/init(_:))

Creates a set containing only the specified [`SquareAzimuth`](/documentation/SwiftUI/SquareAzimuth).

### Instance Methods

[`func contains(SquareAzimuth) -> Bool`](/documentation/SwiftUI/SquareAzimuth/Set/contains(_:))

Returns a Boolean value that indicates whether the set contains
the specified [`SquareAzimuth`](/documentation/SwiftUI/SquareAzimuth).

### Type Properties

[`static let all: SquareAzimuth.Set`](/documentation/SwiftUI/SquareAzimuth/Set/all)

A set containing all four of the [`SquareAzimuth`](/documentation/SwiftUI/SquareAzimuth) constants.

[`static let back: SquareAzimuth.Set`](/documentation/SwiftUI/SquareAzimuth/Set/back)

A set containing only [`SquareAzimuth.back`](/documentation/SwiftUI/SquareAzimuth/back).

[`static let front: SquareAzimuth.Set`](/documentation/SwiftUI/SquareAzimuth/Set/front)

A set containing only [`SquareAzimuth.front`](/documentation/SwiftUI/SquareAzimuth/front).

[`static let left: SquareAzimuth.Set`](/documentation/SwiftUI/SquareAzimuth/Set/left)

A set containing only [`SquareAzimuth.left`](/documentation/SwiftUI/SquareAzimuth/left).

[`static let right: SquareAzimuth.Set`](/documentation/SwiftUI/SquareAzimuth/Set/right)

A set containing only [`SquareAzimuth.right`](/documentation/SwiftUI/SquareAzimuth/right).

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)