sectionNameKeyPath
The key path of the attribute that determines which section the fetched entity belongs to.
Declaration
var sectionNameKeyPath: String? { get }Discussion
This property returns the value you specify for the sectionNameKeyPath parameter when you initialize the fetched results controller.
If the controller generates sections, typically this property’s value matches the specified key path of the first sort descriptor in the controller’s fetch request. If the two key paths don’t match, then they must generate the same relative ordering. For example, the fetch request’s first sort descriptor might specify the key path of a persistent attribute, but sectionNameKeyPath might specify the key path of a transient attribute that derives its value from the persistent one.