---
title: MSMessageLayout
framework: messages
role: symbol
role_heading: Class
path: messages/msmessagelayout
---

# MSMessageLayout

An abstract base class that defines the appearance of MSMessage objects in the conversation transcript.

## Declaration

```swift
class MSMessageLayout
```

## Overview

Overview You do not subclass MSMessageLayout or create instances of it directly. Instead, instantiate the provided concrete subclass, the MSMessageTemplateLayout class.

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [MSMessageLiveLayout](messages/msmessagelivelayout.md)
- [MSMessageTemplateLayout](messages/msmessagetemplatelayout.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Interactive messages

- [MSMessage](messages/msmessage.md)
- [MSSession](messages/mssession.md)
- [MSMessageTemplateLayout](messages/msmessagetemplatelayout.md)
- [MSMessageLiveLayout](messages/msmessagelivelayout.md)
