Skip to content

Custom Equatable implementation to allow ObservedObject parameter #1

Description

@joebez

Hi Duncan. I'm not expert in Core Data, but I believe a custom Equatable implementation on RowView will allow the inclusion of an ObservedObject<Item> parameter and remove the need for the separate RowViewContent struct in ContentViewF.

static func == (lhs: Self, rhs: Self) -> Bool {
    lhs.item == rhs.item
}

I tried it on my local machine and it appears to work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions