---
title: isHorizontallyResizable
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstext/ishorizontallyresizable
---

# isHorizontallyResizable

A Boolean that controls whether the receiver changes its width to fit the width of its text.

## Declaration

```swift
var isHorizontallyResizable: Bool { get set }
```

## Discussion

Discussion If flag is true it does; if flag is false it doesn’t

## See Also

### Constraining size

- [maxSize](appkit/nstext/maxsize.md)
- [minSize](appkit/nstext/minsize.md)
- [isVerticallyResizable](appkit/nstext/isverticallyresizable.md)
- [sizeToFit()](appkit/nstext/sizetofit().md)
