My whole body view is re-rendering even if I click button or navigating to another screen. It would be great if I find any solution to stop reloading view. Thanks in advance.
I tried conforming custom view to Equatable protocol.
struct ReceiverView: View, Equatable {
static func == (lhs: ReceiverView, rhs: ReceiverView) -> Bool {
return lhs.profileImage == rhs.profileImage && lhs.fullName == rhs.fullName
}
New contributor
Drashti Dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.