This might work:
ScrollView(.horizontal) {
ScrollView(.vertical) {
LazyVStack(alignment: .leading, spacing: 1, pinnedViews: [.sectionHeaders, .sectionFooters]) {
Section(header: Header()) {
I got the idea from here:
https://developer.apple.com/forums/thread/685941
Post
Replies
Boosts
Views
Activity
Try using:
.navigationBarItems(leading: {
		Button(action: {
				print(">>>>tapped!!!!!")
		}) {
				HStack {
						Image(systemName: "arrow.2.circlepath")
								.imageScale(.large)
						Text("Button")
				}
		}
})
You can replace the HStack with a VStack.
Or get fancy and try the new Label with both text and image.
See https://developer.apple.com/documentation/swiftui/navigationview/navigationbaritems(leading:) for more details.
Also. navigationBarItems and some other navigation bar functions don't exist for macOS.
You can check for portrait/landscape like this:
GeometryReader { geometry in
	 if geometry.size.height > geometry.size.width {
			print("portrait")
	 } else {
			print("landscape")
	 }
That won't tell you what device you are on.
But, that will work if you want to handle wide windows differently from tall windows on an iPad, too. (Or probably on macOS, too. I haven't tested that, though. That's an exercise left for the reader.)
Harsha -I know this is a bit late ...If you do something like:List(arrayData, id: \.self) { index in MakeRow(..., isEven: index.isMultiple(of: 2))}That will let you set different colors on odd and even rows.