I pint out the result of geo.frame(in: .local), it shows: (0.0, 0.0, 289.33, 666.92), which meas it's not the frame relative to Geometry's parent, it's just the bounds of the GeometryReader(the orange area) Am I right?
@KarlChannell2 жыл бұрын
One thing that tripped me up - If I attempt to take geometryReader values and print or save to variable (anything really) outside of .onTapGesture it goes completely haywire and throws errors. What are the limits of what can and can not be done inside a geometryReader? Why is it different inside .onTapGesture?
@jemmytech54742 жыл бұрын
Why Does SwiftUI ScrollView Return To Top but not to the point from where I started/clicked? can I control this with the prefernceKey or geometry reader?
@stephenweber332 жыл бұрын
In my high school years, we had to learn how to use slide rulers (in case calculators were just a fad). I am fortunate enough to be paid to learn Swift now. And we are starting with storyboard. Today my issue is with Auto constraints. Seems like a hopeless case. My slide rule versus your abacus!! And I am back listening to you for advice. I guess this is watching this video twice. And I want to know if apple phones all have the same aspect ratio or not. I used some background images on views and buttons are jumping around depending on, well Siri doesn't know yet so. I am seeing the geometry reader as my future go to for placement. You are focusing at the end on projecting the centers. Let me finish this video again... Are you sure about the difference in left and right text being the 4 characters in left and 5 in right? affecting the geo center? I cannot fathom quickly points and pixels and dividing by three. In my days. When we wanted accuracy. We go past the glossary in the back of a math book. We would take the value a bit above and one a bit below and interpolate an answer for the middle. My slide ruler was used as a sword naturally so it was dinged and I had to guess which were the proper lines. Don't get me started on counting sliding marbles of the abacus. You converted 1170 by 3 = 190 and 189.833333 difference is smaller than I can see. So ..2 of a pixel or .2 of a point ?? that cannot be a character width, since I can still read...hmm. Going to set up some project and do this myself... :) thks