|
I banged my head against the wall with this one. My solution was making a entirely new view and then I added a GeometryReader to scroll down the numbers. I think my solution was way over complicated for what it is but I learned a lot. Final thoughts: Is arriving at the same result but with diffrent methods acceptable? When is it damaging? Regards |
|
Can you post your code?
Probably.
It seems like the lessons are designed nicely around topics that have been previously covered, and are hopefully completed using those topics. :) Here is my solution if it helps.
|
|
If you're referring to this challenge
Paul asked us to write code like this when making the project...
The line
It can be acceptable if the finished product ends up meeting the requirements that you need it to. However, it can be damaging in many ways. For one thing, it can make you spend more time than necessary. Like, if you had to create a new view and set up a GeometryReader when you could have just deleted one line of code for example. Another problem can be preformance issues. If the end result is what you want, but you have overcomplicated the program so much that there is a noticable difference in responsiveness of the program, then you might have a problem. Yet another problem can be readability of your code. If you are working on a project with others, and you have made things work in some crazy way, then it might not be very easy for other people to read over your code and figure out what you were doing with it. But in the end, there are no hard rules on these things other than the ones that you restrict yourself to. And while you are learning, there is no reason that you can't experiment a bit until you figure out what works. But, as the previous commenter mentioned, the challenges in this course will not typically ask you to do anything that wasn't previously covered in the course material, unless Paul specifically mentions it in a hint somewhere. |
SPONSORED AppSweep by Guardsquare helps developers automate the mobile app security testing process with fast, free scans. By using AppSweep’s actionable recommendations, developers can improve the security posture of their apps in accordance with security standards like OWASP.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.