Skip to content

Add the .task modifier to view its lifecycle #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrRooni
Copy link

@MrRooni MrRooni commented Mar 18, 2023

Reason to Be

While reading up on the .task modifier this morning, I wasn't quite sure if its lifecycle exactly matched .onAppear and .onDisappear. So, I decided to add it to this app and find out.

Related Reading:

Thought Process

I considered actually standing up a Task and tracking its lifecycle as well, to show how they are canceled, but decided to keep things very simple. If you'd like me to add that, I can.

How To Test

Build and run and load up some of the lifecycle views. You should see the new task entry:

Simulator Screen Shot - iPhone 14 Pro - 2023-03-18 at 10 24 13

Possible Impacts

This is fairly straightforward, I don't foresee any adverse effects.

@lgreydev
Copy link

lgreydev commented Oct 8, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants