Post

Replies

Boosts

Views

Activity

Comment on Custom @Observable RandomAcccessCollection List/ForEach issues
I watched the video and although it offers good suggestions, I didn't see an answer to this question. Also, my understanding is that IndexedIdentifierCollection isn't used directly (from the docs) so I wasn't clear on how I could use it. My question remains, why would my custom type that conforms to RandomAccessCollection correctly trigger `ForEach body updates but incorrectly reflect that the list size has increased?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Comment on Custom @Observable RandomAcccessCollection List/ForEach issues
I watched the video and although it offers good suggestions, I didn't see an answer to this question. Also, my understanding is that IndexedIdentifierCollection isn't used directly (from the docs) so I wasn't clear on how I could use it. My question remains, why would my custom type that conforms to RandomAccessCollection correctly trigger `ForEach body updates but incorrectly reflect that the list size has increased?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Comment on Custom @Observable RandomAcccessCollection List/ForEach issues
I believe I understand what the video recommends to avoid hitches and hangs, but I'm not seeing the answer to my question there. When I looked at IndexedIdentifierCollection the docs say apps shouldn't use it directly so I wasn't clear on if it helps solve the problem. Why wouldn't a custom type that conforms to RandomAccessCollection as required by ForEach correctly determine the list has changed but not determine the number of rows has changed?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25