Why is SwiftUI transform a list to a grouped list with navigationBarItems ?

Hi there,

I'm learning SwiftUI now it seems interesting (it was before, but more this year ^^). I try to understand why as soon as I add navigationBarItems into my NavigationView, SwiftUI transform my list into a "grouped cell".

Also, I follow the code shown in Introduction to SwiftUI session this Tuesday and it seems that toolbar is really a toolbar instead of putting everything on navigation bar like it shown.

Is anyone get the same result ?

Accepted Reply

I managed to make it works. Removed the list. And then re embed the NavigationLink in List made it works.

Replies

I managed to make it works. Removed the list. And then re embed the NavigationLink in List made it works.
I'm seeing the same behavior. It must be a bug. Also happens in beta 2 that was released today. Could you explain how exactly you worked around it? Thanks!
Would also be interested in the work around of this one.