iOS 15: Understanding frames and coordinates - Layout and Geometry SwiftUI Tutorial 5/6

  Рет қаралды 8,533

Paul Hudson

Paul Hudson

Күн бұрын

Пікірлер: 5
@martinkowollik1432
@martinkowollik1432 3 жыл бұрын
Great! Very useful! Thanks!
@knightk9022
@knightk9022 3 жыл бұрын
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?
@KarlChannell
@KarlChannell 2 жыл бұрын
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?
@jemmytech5474
@jemmytech5474 2 жыл бұрын
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?
@stephenweber33
@stephenweber33 2 жыл бұрын
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
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
8 Common SwiftUI Mistakes - and how to fix them!
28:05
Paul Hudson
Рет қаралды 50 М.
Stop using Spacer in SwiftUI (and what to use instead)
13:14
Rebeloper - Rebel Developer
Рет қаралды 3,5 М.
SwiftUI GeometryReader
27:53
Stewart Lynch
Рет қаралды 13 М.
5 Steps to Better SwiftUI Views
31:19
Paul Hudson
Рет қаралды 57 М.
31 Xcode Tips & Tricks - 2023
17:45
Sean Allen
Рет қаралды 43 М.
SwiftUI LocationButton - Get User Location |  iOS 15
18:48
Sean Allen
Рет қаралды 17 М.
I deleted all my go projects.
11:17
anthonywritescode
Рет қаралды 14 М.
The Complete Guide to NavigationView in SwiftUI
39:18
Paul Hudson
Рет қаралды 132 М.