Component - ObservableObject protocol
The ObservableObject protocol in SwiftUI lets a class share data that can change over time. When the data changes, the UI updates automatically. It works like a friend who tells you when something important happens, so you can react to it.