I new here and am following along with the calculator app.
However the version of Xcode I’m using is newer than the lesson version and I’m struggling to work out the new syntax for the #Preview
I’ve tried this but it does not work ;
#Preview(
“Button”,
traits: .fixedLayout(width: 100, height: 100)
) {
CalculatorButton(label: “1”, colour: .gray)
}
What have I missed?
Lee