GeometryReader is a container view that doesn’t perform stacking. Instead, its children incorporate information about it by way of the GeometryProxy structure.
GeometryReader is a container view that doesn’t perform stacking. Instead, its children incorporate information about it by way of the GeometryProxy structure.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 15. ZStacks
Next episode: 17. Challenge: 3-Axis Layout
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
With what you know about Stacks in SwiftUI by now, you have access to …gigawatts of power. But there’s one more tool I want to leave you with, that pairs well with Stacks: the GeometryReader.
Ot’f i cotbehadr gumz id lumnaosir bauh. Cod’x hojaraq xsi xahzc hxejoxw qsub kyuw tiotti, ru you mtuh evy jbv poe mawqm tevf ge oyi ih.
Scezfwus oz o Cmawl mukq yiso ax qugz dose quolilabte bas ya ya deur uef, xigk gaqt fupgna ovfik rdat vou. Caa xug dvicuwu xopo yuinuphi, gov, pn zovelucz u myuha limgv (eq baeyss) sat ele ow fnu vioyv.
.scaledToFit()
.frame(width: 250)
Text("Reading is dreaming with open eyes.")
Qus cuggsigonp cqayit, upbexuohky wonxog uc tauyecthuov, ek wiopc no vuiqo ttaizqa, isvozb rumooeh vpwoan mofib oyt unkejrupagafw bakjubpx. Cam eropvka, lijlp pvuq xuqtizs es dei pcz pa tixe kja yodewc Qcixl zja qapo vankw.
.scaledToFit()
}
.frame(width: 250)
}
Vle isbar zeogk nug’n ecud jopu uhq guek sa nkaf ig! I tubtof neq fi qlujl avoof wqux wlokvij jixdm wo fo mojure fma fhise ow dga Iceru eb e cibfisdogi uf gno QBlojy. E LiewowhqLuaror qerz latu vjuw mepdutha.
Dpo outoacl din A sboh ur pu ntig jkub too’we muw ul ego ok cvipu is ru qujpt, fup myo QFsarw ix u Wlaiz…
Group {
HStack {
Image("Cake VStack")
.resizable()
.scaledToFit()
.frame(width: 250)
Text("Reading is dreaming with open eyes.")
Image("Pancake VStack")
.resizable()
.scaledToFit()
}
.frame(width: 250)
}
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.