Post

Replies

Boosts

Views

Activity

Reply to SwiftUI List with children crashes when the last item is deleted
Hello @ruzambo, I copied your app into a new Xcode project and it didn't encounter the crash you specified. I can click remove button three times and it removes the last element. If I click the remove button one more time (forth time), it does crash because itemsCopy.removeLast() is being called on an empty collection. I am also on Big Sur (20D5029f) and Xcode (20D5029f). Is your target iOS?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’21