<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogStringAlignment",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os20OSLogStringAlignmentV"
  },
  "title" : "OSLogStringAlignment"
}
-->

# OSLogStringAlignment

The alignment options for interpolated strings.

```
@frozen struct OSLogStringAlignment
```

## Topics

### Getting the Standard Alignment

[`none`](/documentation/os/OSLogStringAlignment/none)

No alignment.

### Getting a Custom String Alignment

[`left(columns:)`](/documentation/os/OSLogStringAlignment/left(columns:))

Aligns the value on the left side of a column with the specified width.

[`right(columns:)`](/documentation/os/OSLogStringAlignment/right(columns:))

Aligns the value on the right side of a column with the specified width.



---

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)