Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Fernandes committed Jul 12, 2021
1 parent f1125dd commit 2a4365c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ class MyNode: CSKNode {
}

func sinkOnParentChanges() {
$didAttachToParent // `didAttachToParent` from parent `CSKNode`
.sink { [weak self] isAttachedToParent in
if isAttachedToParent {
// Setup your node 👈🏻
$didAttachToParent // `didAttachToParent` from parent `CSKNode`
.sink { [weak self] isAttachedToParent in
if isAttachedToParent {
// Setup your node 👈🏻
}
}
}
.store(in: &cancellables) // `cancellables` from parent `CSKNode`
.store(in: &cancellables) // `cancellables` from parent `CSKNode`
}
}
```
Expand Down

0 comments on commit 2a4365c

Please sign in to comment.