Releases: lukepistrol/TaskTrigger
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
TaskTriggerButton
by @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
TaskTriggerButton
by @lukepistrol in #8
Full Changelog: 0.3.0...0.4.0
0.3.0
0.2.4
What's Changed
- fixes a bug where
PlainTaskTrigger
would 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
@MainActor
by @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