Animation on list not working on NavigationSplitView's `Sidebar`

Here are the sample codes:

import SwiftUI

struct Item: Identifiable, Hashable {
    var id = UUID()
    var text: String
}

struct Player: Identifiable {
    var id = UUID()
    var score: String
}

struct TestView: View {
    @State var sidebarItems: [Item] = [
        .init(text: "1"),
        .init(text: "2")
    ]
    
    @State var players: [Player] = [
        .init(score: "2"),
        .init(score: "3"),
        .init(score: "6"),
        .init(score: "1")]
    
    @State private var selectedItem: Item?
    
    var body: some View {
        NavigationSplitView(columnVisibility: .constant(.all)) {
            List(sidebarItems, selection: $selectedItem) { item in
                Text(item.text)
            }
            Button("shuffle") {
                withAnimation(.easeIn) {
                    players.shuffle()
                    sidebarItems.shuffle()
                }
            }
        } content: {
            List {
                ForEach(players) { player in
                    Text(player.score)
                }
            }
        } detail: {
            Text("Detail")
        }
    }
}

struct TestView_Previews: PreviewProvider {
    static var previews: some View {
        TestView()
    }
}

But as a result. Animation working fine on content but not on sidebar

Can you try using .listStyle(.inset) and .scrollContentBackground(.hidden) and see if that shows animations?

This was working for me in MacOS 14 but no longer seems to be animating on MacOS 15 beta

@SilverMarcs I'm on macOS 14 and I am seeing the same problem. No animation when .listStyle(.sidebar). Your suggesting does fix the problem though, if I change to any other list style then animations work again.

Animation on list not working on NavigationSplitView's `Sidebar`
 
 
Q