I was struggling to format data into a team standings table on the iPhone with limited space for display. After trying and failing for a couple of hours, I watched Stewart's tutorial and I had all the answers I needed in the first 5 minutes! Stewart, I can't thank you enough for explaining grids in a way that everyone can understand!
Really great overview Stewart! I had read the SarunW article but was having problems understanding how to use the .gridCellUnsizedAxes() modifier. You made it very clear with your examples here. Thanks for putting in the time to share this with us! I find this very useful for showing grids of data on the iPhone and cannot wait to give this a try on the iPad as well. Perhaps even using TextField within the Grid / GridRows in order to create an editable grid! 🏆🌟
Stewart how can I add array elements to a grid view but (the array starts with x number of elements, more elements can be added dynamically to the array), thanks Pierre
This is great - I'd call this intermediate level Grid View, would you consider this Basic or Introductory? I haven't checked the docs, I'm assuming the size parameters are pixels? EDIT: Per David Koontz and Stwart Lynch below the size parameters are in POINTS. Thanks.
Just option click on Grid in Xcode and then click on Open in Developer Documentation to find the documentation on Grid (or other views in Swift/SwiftUI). The documentation by Apple has gotten much better. The dimensions are in Points.
A gentle introduction to the basics of Grid
I was struggling to format data into a team standings table on the iPhone with limited space for display. After trying and failing for a couple of hours, I watched Stewart's tutorial and I had all the answers I needed in the first 5 minutes! Stewart, I can't thank you enough for explaining grids in a way that everyone can understand!
Thank for the feedback Larry.
Great example - I'm off to try a grid layout in my project.
This is going to be really useful to create complex layouts, thank you so much Stewart
Stacks are already complex useful
Really great overview Stewart! I had read the SarunW article but was having problems understanding how to use the .gridCellUnsizedAxes() modifier. You made it very clear with your examples here. Thanks for putting in the time to share this with us! I find this very useful for showing grids of data on the iPhone and cannot wait to give this a try on the iPad as well. Perhaps even using TextField within the Grid / GridRows in order to create an editable grid! 🏆🌟
so much. Can’t wait to start making soft.
Really Awesome! I learned a lot! thank you for such nice video! Great !
Great video. Where do you learn all this?
WWDC videos mostly plus reading blogs and the documentation.
Love it
Stewart how can I add array elements to a grid view but (the array starts with x number of elements, more elements can be added dynamically to the array), thanks Pierre
Send me an email Pierre and we will try to sort it out
This is great - I'd call this intermediate level Grid View, would you consider this Basic or Introductory?
I haven't checked the docs, I'm assuming the size parameters are pixels? EDIT: Per David Koontz and Stwart Lynch below the size parameters are in POINTS. Thanks.
Not pixels - points I believe - but I may be wrong. I also bet it is very hard to find in the docs... good luck.
Just option click on Grid in Xcode and then click on Open in Developer Documentation to find the documentation on Grid (or other views in Swift/SwiftUI). The documentation by Apple has gotten much better. The dimensions are in Points.
Points, not pixels