I am a total newbie to app development with swift, so maybe this is quickly answered.
What you’re trying to do / What isn’t working as expected / What’s the error message (if it’s a crash)
I am running Xcode 11.2.1 on macOS Catalina 10.15.1. Everything seems to work fine as I followed Chris’ tutorial “Swift UI Navigation & Lists” until I cannot build and run the code due to the following error for my LandmarkList.swift file (see github file below): "Int’ is not convertible to ‘CGFloat?’
- Chris’ tutorial: https://www.youtube.com/watch?v=wbFuAs_UNYg&t=765s
- My LandmarkList.swift file (hopefully I posted on github correctly as I’m a newbie to github - the build error was pointing to line 19 in the file “.frame(height: 300”): https://gist.github.com/icykol/0dd0fd1ceb6ac56cd67f8948f5ce2fc4
What you’ve already tried to fix the issue
I’ve searched on Stack Overflow and saw 1 article saying that I need to add “.0” to the integer “300” and that should fix the issue, but it did not.
Thanks for any help you can provide! I love Chris’ tutorials and really hope I can complete this tutorials and progress in my learning.