Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-suzuki committed May 8, 2020
1 parent 6986ab3 commit 173487b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,21 @@ let t: ThrowableProperty<Bool> = output.isEnabled
try? t.throwableValue()
```

If a property is defined as `Computed`, be able to access computed value.

```swift
struct Output: OutputType {
let isEnabled: Computed<Bool>
}

var _isEnabled = false
let output = OutputWrapper(.init(isEnabled: Computed<Bool> { _isEnabled }))

output.isEnabled // false
_isEnabled = true
output.isEnabled // true
```

![](https://user-images.githubusercontent.com/2082134/64858314-f7dae380-d661-11e9-9a79-3ca5c53fd90a.png)

### State
Expand All @@ -158,7 +173,7 @@ The rule of Extra is having other dependencies of [UnioStream](#uniostream).

```swift
struct Extra: ExtraType {
let apiStream: GitHubSearchAPIStream()
let apiStream: GitHubSearchAPIStream
}
```

Expand Down

0 comments on commit 173487b

Please sign in to comment.