Your code works as expected, when I run it (as your screenshot 2).
Preview shows the first List (as your screenshot 1).
I would suggest changing the "HSplitView" to an "HStack", as that seems to make both the app and the Preview work.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: