mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-25 10:51:31 +01:00
WIP: readme
This commit is contained in:
@@ -33,7 +33,7 @@ import CoreData
|
||||
The `SectionBy` clause indicates the key path to use to group the `ListMonitor` objects into sections. An optional closure can also be provided to transform the value into an appropriate section name:
|
||||
```
|
||||
let monitor = CoreStore.monitorSectionedList(
|
||||
From<MyPersonEntity>(),
|
||||
From<Person>(),
|
||||
SectionBy("age") { "Age \($0)" },
|
||||
OrderBy(.ascending("lastName"))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user