Skip to content

Commit 560d7e7

Browse files
committed
Update Store.ifLet docs (#500)
* Update `Store.ifLet` docs * More docs * Update syntax for old CI * fix
1 parent 6df8198 commit 560d7e7

File tree

4 files changed

+349
-362
lines changed

4 files changed

+349
-362
lines changed

Examples/TicTacToe/Sources/Views-UIKit/AppViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ class AppViewController: UINavigationController {
3636

3737
self.store
3838
.scope(state: { $0.login }, action: AppAction.login)
39-
.ifLet { [weak self] loginStore in
39+
.ifLet(then: { [weak self] loginStore in
4040
self?.setViewControllers([LoginViewController(store: loginStore)], animated: false)
41-
}
41+
})
4242

4343
self.store
4444
.scope(state: { $0.newGame }, action: AppAction.newGame)
45-
.ifLet { [weak self] newGameStore in
45+
.ifLet(then: { [weak self] newGameStore in
4646
self?.setViewControllers([NewGameViewController(store: newGameStore)], animated: false)
47-
}
47+
})
4848
}
4949
}

0 commit comments

Comments
 (0)