---
schema_version: "1"
id: cf72ded43f1990175b199527261827d82168a3b367c823856be7ca65ca5dead3
title: InAppMessageText
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/ios-sdk-v11/sfmc-sdk/protocols/inappmessagetext.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/inappmessagetext.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fa9fb2a9f043f00d3521c0343cadc52e9ee6875ee04a6136348bfcedbbb70204
products:
  - Salesforce Engagement SDK
---
# InAppMessageText

`Protocol`

## Declaration

```swift
@objc(SFMCSdkInAppMessageText)
public protocol InAppMessageText

var text: String? { get }

var alignment: InAppMessageAlignment { get }

var fontFamily: String? { get }

var fontSize: InAppMessageSize { get }

var fontStyle: String? { get }

var fontColor: String? { get }

var margin: InAppMessageSpacing? { get }

var additionalMargin: InAppMessageSpacing? { get }
```

## Cases

### `text`

```swift
var text: String? { get }
```

---

### `alignment`

```swift
var alignment: InAppMessageAlignment { get }
```

---

### `fontFamily`

```swift
var fontFamily: String? { get }
```

---

### `fontSize`

```swift
var fontSize: InAppMessageSize { get }
```

---

### `fontStyle`

```swift
var fontStyle: String? { get }
```

---

### `fontColor`

```swift
var fontColor: String? { get }
```

---

### `margin`

```swift
var margin: InAppMessageSpacing? { get }
```

---

### `additionalMargin`

```swift
var additionalMargin: InAppMessageSpacing? { get }
```

---
