See the SwiftUI tutorials:
https://developer.apple.com/tutorials/swiftui/creating-a-macos-app
Un-star all the landmarks and click "Favorites only" will got a error
But I change the code "NavigationPrimary.swift"
to
It works well.
So, What's the different of "InsetListStyle" and "SidebarListStyle"?
If I want to use "SidebarListStyle", how to fix it?
Thanks!
PS:
This is my code, fix some bugs in the tutorials
https://github.com/rushairer/MySwiftApp
https://developer.apple.com/tutorials/swiftui/creating-a-macos-app
Un-star all the landmarks and click "Favorites only" will got a error
But I change the code "NavigationPrimary.swift"
Code Block swift LandmarkList( selectedLandmark: $selectedLandmark, filter: $filter ) .listStyle(SidebarListStyle())
to
Code Block swift LandmarkList( selectedLandmark: $selectedLandmark, filter: $filter ) .listStyle(InsetListStyle())
It works well.
So, What's the different of "InsetListStyle" and "SidebarListStyle"?
If I want to use "SidebarListStyle", how to fix it?
Thanks!
PS:
This is my code, fix some bugs in the tutorials
https://github.com/rushairer/MySwiftApp