JD-man / TIL

0 stars 0 forks source link

The Composable Architecture #6

Open JD-man opened 2 years ago

JD-man commented 2 years ago

What is the Composable Architecture?

Learn More

Examples

JD-man commented 2 years ago

Basic Usage

State

Action 보내기

Button("−") { viewStore.send(.decrementButtonTapped)

State Bind

.alert(
        item: viewStore.binding(
          get: { $0.numberFactAlert.map(FactAlert.init(title:)) },
          send: .factAlertDismissed
        ),

Reducer