We are running Xcode 14.2 using Rosetta, since we still have one library that needs to be updated.
I installed the Xcode 14.3 beta to test it and it no longer supports Rosetta, so I removed it (for now) to continue development with 14.2.
The problem that I now have is that the project no longer compiles using Xcode 14.2, even though it is clearly running in Rosetta (Activity Monitor shows Intel). I get the following error, which was the one that got when not running Xcode under Rosetta:
In x, building for iOS Simulator, but linking in object file built for iOS, file ‘’ for architecture arm64
I tried removing everything related to Xcode and installed it again with no luck. Is there any file or setting that I can change to make the project build correctly again?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have the following Chart and I can't figure out why the AreaMark's are transparent.
The area marks are opaque when I move the .symbol view modifier to the AreaMark, but then the gradient doesn't work anymore
Any ideas on how to solve this?
struct Ranking: Identifiable {
let name: String
let steps: Int
var id: String { name }
}
let rankings: [Ranking] = [
.init(name: "Tom", steps: 200),
.init(name: "Joseph", steps: 850),
.init(name: "Emil", steps: 700),
.init(name: "Sandra", steps: 100),
.init(name: "Annie", steps: 400),
.init(name: "Teo", steps: 700),
.init(name: "Pär", steps: 400)
]
struct ContentView: View {
let curGradient = LinearGradient(
gradient: Gradient (
colors: [
Color(.blue).opacity(0.1),
Color(.blue).opacity(0.0)
]
),
startPoint: .top,
endPoint: .bottom
)
var body: some View {
VStack() {
Text("Ranking")
Chart {
ForEach(rankings) { element in
LineMark(
x: .value("Name", element.name),
y: .value("Steps", element.steps)
)
.interpolationMethod(.catmullRom)
.foregroundStyle(.blue)
.symbol {
Circle()
.fill(.white)
.frame(width: 20)
.shadow(radius: 2)
}
AreaMark(
x: .value("Name", element.name),
y: .value("Steps", element.steps)
)
.interpolationMethod(.catmullRom)
.foregroundStyle(curGradient)
}
}
.chartYAxis(.hidden)
.chartXAxis {
AxisMarks(position: .top) { value in
AxisValueLabel(verticalSpacing: 20)
}
}
.frame(height: 200)
Spacer()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Is it possible to revert the yAxis values to have the lowest numbers start from the top?