Prompt Refactor

Migrate to Swift Observation

Migrate from ObservableObject/Combine to the Swift Observation framework (@Observable).

swiftswiftuiios
Insert label Observation
Prompt

Migrate this code from ObservableObject with @Published properties to the Swift Observation framework. Replace the class with @Observable, remove @ObservedObject/@StateObject from views, and update any manual objectWillChange calls. Ensure the result targets iOS 17+/macOS 14+.

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl