I am reporting a bug with UUIDs and List>ForEach. When using List>ForEach with UUID as the ForEach "id" it causes the app to crash. I tested ForEach without List and that seems to load fine in Android. I took a quick look at the Android debugger and it mentions not being able to store UUID in the bundle (I think because it isn't Parcelable).
Example:
struct Item {
let id: UUID
var title: String
}
struct ListView: View {
var items: [Item] = [Item(id: UUID(), title: "My Item")]
var body: some View {
List {
ForEach(items, id: \.id) { item in
Text(item.title)
}
}
}
}
I am reporting a bug with UUIDs and List>ForEach. When using List>ForEach with UUID as the ForEach "id" it causes the app to crash. I tested ForEach without List and that seems to load fine in Android. I took a quick look at the Android debugger and it mentions not being able to store UUID in the bundle (I think because it isn't Parcelable).
Example: