---
title: "subscript(sectionTitle:)"
framework: SwiftData
role: symbol
role_heading: Instance Subscript
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swiftdata/sectionedresults/subscript(sectiontitle:)"
---

# subscript(sectionTitle:)

Returns the section with the given title, or nil if no such section exists.

## Declaration

```swift
subscript(sectionTitle title: SectionTitle) -> ResultsSection<Element, SectionTitle>? { get }
```

## Overview

Overview note: O(1)
