Try this.
struct ContentView: View {
var body: some View {
List {
ForEach(0..<1) {_ in
Text("Hello World")
}
.listRowBackground(Color.red)
}
.listStyle(.insetGrouped)
}
}
Post
Replies
Boosts
Views
Activity
I submitted a bug report on this. FB11610535
.listRowBackground only works in a ForEach.
Xcode 14.1 beta 3 with symbols for watchOS 9.0.1 fixed the issue.
I just started Xcode 14.1 beta 3 and I see that symbols for watchOS 9.0.1 are being downloaded. I think that's a good thing. I will test and report back.
Stand-alone that is.
I found a work-around, but it won't work with a stand-along Apple Watch app. Simply run the iOS app using Xcode and while the app is running, go into the Apple Watch and start the Apple Watch app. It worked for me. I made changes to the Apple Watch app and saw the changes on the watch when I did this.
I created a bug report.
FB11577943
Tried removing and installing Developer Mode on Apple Watch. Still no go.
I figured it out. It's a Carousel List.
.listStyle(.carousel)
It's still a problem with b6.
Swift Charts require iOS 16.0, iPadOS 16.0, macOS 13.0, Mac Catalyst 16.0, tvOS 16.0 or watchOS 9.0 or greater.
SwiftCharts
For value-based navigation destinations, don't put the destination modifier right after the NavigationLink. Put it after the List view or whatever your containing view is.
Create a data model structure which holds the MKAnnotation data. Insure that the structure is Codable. Then create an init which initializes your data from an MKAnnotation. Create an array of your data and save it via Json.
Yeah, I'm seeing it too.