Contents

edonv/asyncbutton

This is a convenience type for encapsulating asynchronous logic in a SwiftUI `Button`. The initial base of this code was taken from John Sundell's article here: <https://swiftbysundell.com/articles/building-an-async-swiftui-button/>. This included the main idea and structure of `

To-Do's

  • [ ] Create environment values (internal ones that are used by public modifiers) for more granular settings

- [ ] Animation for changes to isEnabled and isShowingPlaceholder - [ ] Duration to wait before showing the placeholder view (minAsyncDuration), which is used just in case action is so fast, nothing is needed to be shown - [ ] ActionOptions

Package Metadata

Repository: edonv/asyncbutton

Default branch: main

README: README.md