|
Good day everyone, I worked on my app today and wondered where this little gap comes from... The ZStack (top) and List (bottom) are marked with a red border, so you can see the gap clearly, where the 2 lines of red should meet, but they don't Code:
Thank you very much! |
|
Marci has a stacking problem and seeks clarification:
It's not a bug! It's a feature! See -> Apple Explains VStack Spacing Your To fix, you'll probably want something like this code. As we might say in the Tube, Mind the Gap!
|
|
You didn't ask, but here are my thoughts on ContentViewIn decades of coding courses and C+ Programming for Dummies type books, function names were often given the generic name When you create a new SwiftUI view, XCode gives the view a nonsense name: @twoStraws and most all other SwiftUI content providers in YouTube land will express the need for descriptive variable names. They'll note how important it is to use camelCase, or to capitalize the names of Structs and Classes. Indeed, when creating other views in a project, they're very careful to give the new views a meaningful name! Yet, they'll often leave the first view named Here's my personal feedback. As soon as you create a new SwiftUI View, change the name from For example, in your application, the main focus of your application may be the |
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
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.