List Row Remain selected / highlighted

Viewed 166

List View's row remains highlighted when coming back from the detail screen, as shown in the screenshot. Tested in Xcode 12 and iOS 14. List Code:

        List(dummyArray) { item in
        NavigationLink(
            destination: DummyDetailDView(),
            label: {
                CustomRow(item: item)
            })
    }
    .listStyle(PlainListStyle())

enter image description here

Edit 1: I observed that this only happens when my List View is part of any Container View.

0 Answers
Related