SwiftUI-Notes
SwiftUI-Notes copied to clipboard
@ObjectBinding shouldn't init objects
https://github.com/calda/SwiftUI-Notes/blob/516d41a95df31962cf20840ba2e3af66fb36ab96/SwiftUI%20Notes/NoteList.swift#L17
@ObjectBinding is designed for objects that are set by a parent View. The View struct only exists when there is a state change and then it is gone so any objects created are immediately lost.