This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ComposableArchitecture | |
import SwiftUI | |
extension Reducer { | |
/// Returns a reducer that applies ``BindingAction`` mutations to `LocalState` on `State`. | |
/// | |
/// - Parameters: | |
/// - toLocalState: A key path that can get/set `LocalState` inside `State`. | |
/// - toLocalAction: A case path that can extract/embed `BindingAction` of `LocalState` from `Action`. | |
/// - Returns: A reducer that applies ``BindingAction`` mutations to `LocalState` on `State`. |