Hi,
I am a beginner with Swift.
I am on the section ’ Code History: Updating the User Interface’ (see below)
I cannot progress with the app build. I receive a Build Failed message.
I have checked and re-checked all my code for all files in the Code History App against the code provided by Codecademy. There are no code errors that I can find in any of the files.
However in ContentView file, the following errors are displayed:
-
Generic parameter ‘C’ could not be inferred
-
Cannot convert value of type ‘Range’ to expected argument type ‘Binding’
-
Subscript ‘subscript(_;)’ requires that ‘Binding<C.Element>’ conform to ‘RangeExpression’
I am using Xcode version 15.3, macOS Sonoma 14.4.1
Any help greatly appreciated