Post

Replies

Boosts

Views

Activity

Type 'Recipe' does not conform to protocol 'Identifiable'
When I struct my SwiftUI View named Recipe and I assign Hashable, Codable, and Identifiable to it, I get an error saying: Type 'Recipe' does not conform to protocol 'Identifiable'. Then when I try to add Protocol Stubbs the error message changes to Type 'Recipe' does not conform to protocol 'Decodable' and Type 'Recipe' does not conform to protocol 'Encodable'
1
0
2.3k
Apr ’22
Type 'Recipe' does not conform to protocol 'Identifiable'
When I struct my SwiftUI View named Recipe and I assign Hashable, Codable, and Identifiable to it, I get an error saying: Type 'Recipe' does not conform to protocol 'Identifiable'. Then when I try to add Protocol Stubbs the error message changes to Type 'Recipe' does not conform to protocol 'Decodable' and Type 'Recipe' does not conform to protocol 'Encodable'
Replies
1
Boosts
0
Views
2.3k
Activity
Apr ’22