|
For Project 1, Challenge 2, I added a fourth section to display the original check amount plus tip value, without dividing by the number of people as requested. That works fine. I then went ahead and added a header to the new section with header text "Total amount for the check". The app builds fine but when I click in the amount field in the Simulator which brings up the keyboard there are now two "Done" buttons on the keyboard (the button was added to remove focus from the amount field). When I remove the header the issue goes away and there is only one "Done" button again on the keyboard. I'm struggling to understand why the addition of the header is causing that issue. Any thoughts? |
|
|
|
Sorry meant to do that but forgot. Here it is...
|
|
Move the navigationTitle and the toolbar on the Form and not on the last section.
|
|
Thanks! One issue I had was being able to track the brace pairs to be sure I had things correctly formated. Since the code covered move than one screen length I could not see, for example, the corresponding open brace if I clicked before a closed brace at the bottom of the code. Any Xcode trick to see how braces match for long lines of code? |
|
|
|
You're welcome. If you double-click on a brace it will jump to it's corresponding match, selecting everything in between as well. |
|
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
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.