0

In Xcode 15 (still beta) with Swift 5.9, I want to use @Observable instead of

@Observable struct Feature {
    let name: String
}

I'm getting the below error:

Unknown attribute 'Observable'
Keshav
  • 2,965
  • 3
  • 25
  • 30

1 Answers1

3

I had to import Observation framework

import Observation
Keshav
  • 2,965
  • 3
  • 25
  • 30