-
Initializes a
CSSectionBy
clause with the key path to use to groupCSListMonitor
objects into sectionsDeclaration
Swift
@objc public static func keyPath(_ sectionKeyPath: KeyPathString) -> CSSectionBy
Parameters
sectionKeyPath
the key path to use to group the objects into sections
Return Value
a
CSSectionBy
clause with the key path to use to groupCSListMonitor
objects into sections -
Initializes a
CSSectionBy
clause with the key path to use to groupCSListMonitor
objects into sections, and a closure to transform the value for the key path to an appropriate section nameDeclaration
Swift
@objc public static func keyPath(_ sectionKeyPath: KeyPathString, sectionIndexTransformer: @escaping (_ sectionName: String?) -> String?) -> CSSectionBy
Parameters
sectionKeyPath
the key path to use to group the objects into sections
sectionIndexTransformer
a closure to transform the value for the key path to an appropriate section name
Return Value
a
CSSectionBy
clause with the key path to use to groupCSListMonitor
objects into sections