Post not yet marked as solved
Another problem is that my AreaMarks also go out of the visible area. So my more general question is to Apple: how does one deal with marks that are outside of the desired chart ranges for the x and y axes?
I found that LineMark and AreaMark have a series parameter by which a series can be grouped. By doing that I can set a static foregroundStyle for my percentile area marks while using the data-based foreground styles for the actual data line marks.
Post marked as Apple Recommended
I was told that the function to generate an Xcode project predates support for resources and thus doesn’t add the building of resource bundles.
Post not yet marked as solved
I found you can use
#if SWIFT_PACKAGE
	 let resourceBundle = Bundle.module
#endif
This define is present when building the code via SwiftPM.
Post marked as Apple Recommended
Still not available in Beta 5?
Post not yet marked as solved
This following code is using a List, so the highlight is working as expected, but I cannot scroll to a specific item.
struct ContentView: View {
let timezones = TimeZone.knownTimeZoneIdentifiers.map { TimeZone(identifier: $0)! }
var body: some View {
let continents = Set(timezones.compactMap { $0.continent }).sorted()
List {
ForEach(continents, id: \.self) { continent in
let continentTZ = timezones.filter { $0.continent == continent}
Section(header: HeaderView(title: continent)) {
ForEach(continentTZ) { timezone in
Button(action: {
}) {
TimeZoneCell(timezone: timezone)
}
}
}
}
}.navigationBarTitle(Text("Time Zones"), displayMode: .inline)
}
}