Skip to content

Releases: lukepistrol/TaskTrigger

0.4.1

26 Nov 22:38
0653d6f
Compare
Choose a tag to compare

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

26 Nov 11:55
c489972
Compare
Choose a tag to compare

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

26 Nov 11:01
7d0b1d5
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.4...0.3.0

0.2.4

01 Jul 08:50
8cdf339
Compare
Choose a tag to compare

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

20 Sep 17:34
4be5587
Compare
Choose a tag to compare

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

20 Sep 16:56
17e002b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.1...0.2.2

0.2.1

17 Sep 11:49
714fd78
Compare
Choose a tag to compare
  • minor adjustments

Full Changelog: 0.2.0...0.2.1

0.2.0

17 Sep 06:58
14287f0
Compare
Choose a tag to compare
  • Support Swift 5.8+

Full Changelog: 0.1.0...0.2.0

0.1.0

17 Sep 00:32
5c73b3b
Compare
Choose a tag to compare