Skip to content

Releases: lukepistrol/TaskTrigger

0.5.0

Choose a tag to compare

@lukepistrol lukepistrol released this 20 Oct 21:07
bd3c3bb

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

Choose a tag to compare

@lukepistrol lukepistrol released this 26 Nov 22:38
0653d6f

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

Full Changelog: 0.4.0...0.4.1

0.4.0

Choose a tag to compare

@lukepistrol lukepistrol released this 26 Nov 11:55
c489972

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

Full Changelog: 0.3.0...0.4.0

0.3.0

Choose a tag to compare

@lukepistrol lukepistrol released this 26 Nov 11:01
7d0b1d5

What's Changed

Full Changelog: 0.2.4...0.3.0

0.2.4

Choose a tag to compare

@lukepistrol lukepistrol released this 01 Jul 08:50
8cdf339

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

Choose a tag to compare

@lukepistrol lukepistrol released this 20 Sep 17:34
4be5587

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

Choose a tag to compare

@lukepistrol lukepistrol released this 20 Sep 16:56
17e002b

What's Changed

Full Changelog: 0.2.1...0.2.2

0.2.1

Choose a tag to compare

@lukepistrol lukepistrol released this 17 Sep 11:49
714fd78
  • minor adjustments

Full Changelog: 0.2.0...0.2.1

0.2.0

Choose a tag to compare

@lukepistrol lukepistrol released this 17 Sep 06:58
14287f0
  • Support Swift 5.8+

Full Changelog: 0.1.0...0.2.0

0.1.0

Choose a tag to compare

@lukepistrol lukepistrol released this 17 Sep 00:32
5c73b3b