Build: Counter Screen
A simple screen that shows a number and a button to increase it. The number updates automatically when changed using ObservableObject and @Published.
Target UI
------------------- | Counter App | ------------------- | | | 0 | | | | [ Increase ] | -------------------
Create a class that conforms to ObservableObject.
Add a @Published integer property to hold the count.
Build a SwiftUI view that observes this object.
Display the current count in a Text view.
Add a Button that increments the count when tapped.