Docs update

This commit is contained in:
John Estropia
2019-10-20 18:17:31 +09:00
parent a267395618
commit f5fed063ee
56 changed files with 853 additions and 863 deletions

View File

@@ -41,7 +41,7 @@ import SwiftUI
/**
`ListPublisher` tracks a diffable list of `DynamicObject` instances. Unlike `ListMonitor`s, `ListPublisher` are more lightweight and access objects lazily. Objects that need to be notified of `ListPublisher` changes may register themselves to its `addObserver(_:_:)` method:
```
let listPublisher = Shared.defaultStack.listPublisher(
let listPublisher = CoreStoreDefaults.dataStack.listPublisher(
From<Person>()
.where(\.title == "Engineer")
.orderBy(.ascending(\.lastName))
@@ -55,7 +55,7 @@ import SwiftUI
`ListPublisher`s may optionally be created with sections:
```
let listPublisher = Shared.defaultStack.listPublisher(
let listPublisher = CoreStoreDefaults.dataStack.listPublisher(
From<Person>()
.sectionBy(\.age") { "Age \($0)" }
.where(\.title == "Engineer")