Skip to content

Add the .task modifier to view its lifecycle#2

Open
MrRooni wants to merge 1 commit into
ole:mainfrom
MrRooni:mrrooni/task-lifecycle
Open

Add the .task modifier to view its lifecycle#2
MrRooni wants to merge 1 commit into
ole:mainfrom
MrRooni:mrrooni/task-lifecycle

Conversation

@MrRooni
Copy link
Copy Markdown

@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
Copy Markdown

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