Releases: lukepistrol/TaskTrigger
Release list
0.5.0
fixes a bug that occurred when the attached view gets destroyed before the action was completed
and thus the state was not reset. When the view was recreated, the task would trigger again
leading to unexpected behavior. Now the task trigger will always reset.
Full Changelog: 0.4.1...0.5.0
0.4.1
New in this Version
This version adds a new view TaskTriggerButton which abstracts the whole TaskTrigger logic further by being a drop-in replacement for a SwiftUI.Button. The advantage is, that async actions can be run without wrapping them in a free-standing Task:
TaskTriggerButton("Start Action") {
await someAsyncAction()
}the above is equivalent to:
@State var trigger = PlainTaskTrigger()
var body: some View {
Button("Start Action") {
trigger.trigger()
}
.task($trigger) {
await someAsyncAction()
}
}What's Changed
TaskTriggerButtonby @lukepistrol in #8
Full Changelog: 0.4.0...0.4.1
0.4.0
New in this Version
This version adds a new view TaskTriggerButton which abstracts the whole TaskTrigger logic further by being a drop-in replacement for a SwiftUI.Button. The advantage is, that async actions can be run without wrapping them in a free-standing Task:
TaskTriggerButton("Start Action") {
await someAsyncAction()
}the above is equivalent to:
@State var trigger = PlainTaskTrigger()
var body: some View {
Button("Start Action") {
trigger.trigger()
}
.task($trigger) {
await someAsyncAction()
}
}What's Changed
TaskTriggerButtonby @lukepistrol in #8
Full Changelog: 0.3.0...0.4.0
0.3.0
0.2.4
What's Changed
- fixes a bug where
PlainTaskTriggerwould not re-trigger by @lukepistrol in #6
Full Changelog: 0.2.3...0.2.4
0.2.3
What's Changed
- Fixes: #3: mark closure of task modifier with
@MainActorby @lukepistrol in #4
Full Changelog: 0.2.2...0.2.3
0.2.2
What's Changed
- Fixes #1: Sendable conformance for Value by @lukepistrol in #2
Full Changelog: 0.2.1...0.2.2
0.2.1
- minor adjustments
Full Changelog: 0.2.0...0.2.1
0.2.0
- Support Swift 5.8+
Full Changelog: 0.1.0...0.2.0
0.1.0
Initial Release
Full Changelog: https://github.com/lukepistrol/TaskTrigger/commits/0.1.0