Codable과 Published 같이 사용하는 법 class User: ObservableObject, Codable { @Published var name = "Paul Hudson" } 다음과 같은 코드를 작성하면 에러가 뜬다. 그 이유는 swift가 Published 속성을 Codable할 수 없기 때문이다. @propertyWrapper struct Published<Value> 스위프트는 ‘배열의 요소가 codable이...
neodev.hashnode.dev5 min read
No responses yet.