I try to create a topic in the app dev section but get this error:
An error occurred: Sorry, new users can only mention 2 users in a post.
No idea what it means.
I try to create a topic in the app dev section but get this error:
An error occurred: Sorry, new users can only mention 2 users in a post.
No idea what it means.
If you have tried to add code to your post which includes @State or @Environment or any swift wrapper, without formatting the code as a “code block” so that it appears like this:
struct ContentView: View {
@State var screenWidth = UIScreen.main.bounds.width
let plotPoints = [5, 20, 16, 7, 13, 8, 10]
let maxHeight = 20
@State private var plots = [ChartPoints]()
var body: some View {
VStack {
GeometryReader { gr in
HStack(alignment: .bottom, spacing: (screenWidth - 100) / CGFloat(plotPoints.count)) {
ForEach(plots, id: \.self) { point in
let height = CGFloat(point.point / CGFloat(maxHeight))
ZStack {
Rectangle()
.fill(Color.blue)
VStack {
Text("\(Int(point.point))")
.frame(width: 25)
.foregroundColor(.white)
Spacer()
}
}
.frame(width: 25, height: gr.size.height * height)
}
}
}
}
.frame(height: 400)
.padding()
.onAppear {
for point in plotPoints {
let newPoint = ChartPoints(point: CGFloat(point))
plots.append(newPoint)
}
}
}
}
What will happen is that anything that begins with @ will be interpreted as referring to another user.
To format your code as a “code block”, paste in the code and then select all of that code with your cursor and then tap the icon in the editing bar that looks like </>
.
What that does is place 3 back-tick characters ``` above the code block and 3 back-tick characters ``` below the code block. The back-tick character is on the same key as the tilde ~ on a QWERTY keyboard.
See if that solves your issue.
Excellent, thank you. Maybe mention it in FAQs or somewhere? Or maybe it is already.