Follow

Why is deinit not called here?

If a StateObject's lifetime is that of the containing view, popping from the stack should deallocate it. But it doesn't.

Weirdly removing the List's selection binding results in a dealloc as expected.

Is this a memory leak with List or am I missing something? (iOS 17/latest Xcode)

gist.github.com/phillipcaudell

Sign in to participate in the conversation
The Not So Big Company

The home of The Not So Big Company on Mastodon.