<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSMessage/layout",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSMessage(py)layout"
  },
  "title" : "layout"
}
-->

# layout

A layout object that defines the message’s appearance.

```
@NSCopying var layout: MSMessageLayout? { get set }
```

## Discussion

Set this property to a concrete subclass of the abstract [`MSMessageLayout`](/documentation/Messages/MSMessageLayout) class.

By default, the `layout` property is set to `nil`.

---

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)