Closed juliensagot closed 3 weeks ago
Adds methods to send actions and return effects using UITransaction:
UITransaction
return .run { send in await send(.buttonTapped, uiKitAnimation: .easeInOut) }
return .run { send in await send(.buttonTapped) } .uiKitAnimation(.easeInOut)
return .run { send in await send(.buttonTapped, transaction: UITransaction(animation: .easeInOut)) }
var transaction = UITransaction() transaction.uiKit.disablesAnimations = true return .run { send in await send(.buttonTapped) } .transaction(transaction)
store.send(.buttonTapped, uiKitAnimation: .easeInOut) store.send(.buttonTapped, transaction: UITransaction()) // ViewActionSending send(.buttonTapped, uiKitAnimation: .easeInOut) send(.buttonTapped, transaction: UITransaction())
@stephencelis That definitely makes sense! I hadn’t thought about creating an external package, but I think it’s a good idea. The more platform-agnostic TCA is, the better.
Adds methods to send actions and return effects using
UITransaction
: