SwiftUI @StateObject (공식문서 링크)https://developer.apple.com/documentation/swiftui/stateobject Apple Developer Documentation developer.apple.com @StateObject 를 적용해 ObservableObject 프로토콜을 채택하고 있는 객체를 View, App 또는 Scene에서 객체를 생성함 @StateObject var model = DataModel() SwiftUI에서는 객체를 선언하는 인스턴스에 대해 한 번만 객체의 새 인스턴스를 생성. 관찰 가능한 객체의 속성이 변경되면 SwiftUI는 해당 속성에 의존하는 뷰의 일부를 업데이트 Text(model.title) // Updates t..