---
title: flexibleSpace
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstouchbaritem/identifier-swift.struct/flexiblespace
---

# flexibleSpace

The identifier of an item appropriate for use as a flexible space in a Touch Bar.

## Declaration

```swift
static let flexibleSpace: NSTouchBarItem.Identifier
```

## Discussion

Discussion Use this identifier in the itemIdentifiers array on an NSTouchBar object and the system will instantiate the item for you.

## See Also

### Creating identifiers for space items

- [fixedSpaceSmall](appkit/nstouchbaritem/identifier-swift.struct/fixedspacesmall.md)
- [fixedSpaceLarge](appkit/nstouchbaritem/identifier-swift.struct/fixedspacelarge.md)
