SwiftUI-Notes icon indicating copy to clipboard operation
SwiftUI-Notes copied to clipboard

@ObjectBinding shouldn't init objects

Open malhal opened this issue 4 years ago • 0 comments

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.

malhal avatar Sep 14 '20 17:09 malhal