Build iOS Apps with SwiftUI: CodeHistory not building

Hi,

I am a beginner with Swift.

I am on the section ’ Code History: Updating the User Interface’ (see below)

[https://www.codecademy.com/paths/build-ios-apps-with-swiftui/tracks/building-code-history-part-one-swiftui/modules/building-the-question-model-swiftui/articles/updating-the-user-interface-swiftui]

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:

  1. Generic parameter ‘C’ could not be inferred

  2. Cannot convert value of type ‘Range’ to expected argument type ‘Binding’

  3. 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 :slight_smile:

Here for any feedback, I’m running into the same error