|
Solved Day 46, but with some doubts, posting my solution here and looking to see if I can get some answers/improvement suggestions. In particular, I have a doubt about the last part. This is what I implemented so far based on the challenge questions
AddView
Return to project 8 (Moonshot), and upgrade it to use NavigationLink(value:). This means adding Hashable conformance, and thinking carefully how to use navigationDestination(). This is the part i'm confused, I used NavigationLink(value:) in my grid view and had to conform Mission to Hashable, but in doing that, my Mission Struct had a 'does not conform to equatable' error and thus had to make the Mission struct conform to equatable by implementing a custom == function. Why is this the case? This happens after I change MoonshotGridView (shown below) to use NavigationLink(value:) and I just can't see where it's performing an equality comparison.
|
|
I tried to reproduce your issue and was unable. I simply implemented Most likely some configuration issue. Check your iOS version, and restart XCode |
|
Hi
You will get this
|
SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.