<!--
{
  "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/right(columns:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os20OSLogStringAlignmentV5right7columnsACSiyXA_tFZ"
  },
  "title" : "right(columns:)"
}
-->

# right(columns:)

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

```
static func right(columns: @autoclosure @escaping () -> Int) -> OSLogStringAlignment
```

## Parameters

`columns`

The width of the item in characters.

## Return Value

A string-alignment structure with the specified value.

---

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)