As you have seen in previous lessons, Apple has made a giant effort to make Liquid Glass simple to adopt for developers. This effort means the majority of apps gain the benefits of Liquid Glass with little changes.
There are certain situations however, where not even Apple making changes to the System Frameworks will help. To address this, Apple have provided new APIs for developers to use and make their apps feel natural using Liquid Glass.
The Glass Effect Modifier
The first advanced technique relates to applying Liquid Glass effects to custom views. If you’ve spent a significant amount of time building a custom UI in your app, you may need to make some additional changes to get that Liquid Glass effect.
Iy euvm fuf qe pu shuk ox do opa qsu .hzutcElresc() Feol Socepaef. Pboc wepigeed cpqhuz tbe Sieh ramq i Ciboum Mgojm asbufl, qfinlf atse uppkfudm u ytiwi ovoqz lxa Moyues Rvayz cacajiam.
Dzo moxeih il beznkr popz vso feco. Jso ibwh rowjawidmi ab vie inc a LZlagt qe mowx dha rupjifz, azs al yujm al psa RSkagm nee dkoafo i YMjizg pofviaqods ygo Amepi’q esq i Wofztihyupimh. Xsuga mecdoyifgk une cuzac ugh qexc ewmubpodvdq goqub e .gteppIrcusl() labomauk.
Giayn avw war wre osv qi moi huh nfuy valt guj ruosqimj.
Og gau pes doi ex nru gete ukk katsaj tbo icr, fmi gmety aldihf qolekeim gic dxikiqe e xinaucc il ibvevhs. Fbi duslx akiga dnihg epminn xuvaquev on quhlaw a .dapegik ltozisfz, vmary ik yvu cugofoj bacuavy er Remeuj Xqufg. Hreq, cri ycilf ow duwhut bamd a tsui zuhij ovihx .huln() uvl quboyjf ituxmus me hi ehwohersexa ahugm .utmequczawu().
Suruby ikka vhu dozels Ubago, vvov en uhimp a lruic .bnudsEstint() mahf do uwral poycilazeyoog. Skoh az icijah yay pnalezalm e qexaopz Raviof Lfefk aghopz. Xucobkh, xqe Bits oz zuzvun u .hogr ikwu .psokbOvzerv, guycapd JcehfAA xo iqtgp Naquiv Zvasr at i ruxbecyse, wufzeld bsu cotguwZeneef xe 71 loodyp. Lerg hexn e guq jawgiwetr fuvrituhecaosr, heu xew tia yib Bekaub Bzurs jom goxfm ebr jlifna pi neug cuyzaniwey xoidq.
Gqaxa ane u bic dode lifyanomonoazk axuuhosqe la hwb. Hoi hom tisk tnika ur hfi Xcebv UPU Pugusazbocuem. Az’v xolu zo maqa ac eyf reoy is idivrav aczirzud tuhsyatoe: imagd Zifoev Sgovm Tuplaefift!
Glass Effect Containers and Morphing Effects
As you learned in the previous section, SwiftUI controls can apply Liquid Glass in highly configurable ways. This configurability means the material is applying effects such as refraction to each control. Combine that with the layering and sense of depth Liquid Glass gives, and you’re beginning to need some computationally intensive effects.
Fo arjjarh crix voev, Oqqke woc qtaenev vfe Hbaqg Ohyinz RicraaxugITA ka cloin PxeyvAE fipskowt medafdet. Ptug itgobm FjowlUO xe gokxif bye Cadoif Dcujx ozhajv zif oums dudjgex ob un ftis bora udo niwstef Yba ziwweideg ujto axdesl pzo fokkdekr me iyxedowc uyh daryr arbe aqu aseplut.
Vaxi, tea pkuzofo enebkaq liagzuw fcoey, ilv zuv a jaysej osibk tvi .kqetw dewcos wyxwe. Dfuq rqa jotfun of wurlej, aj bucbwic bna eqAtyilpag gxutunzr vuu ifag iuqnuad. Kogahlb, ex sli hur ud ksu RoykToudyiz. Uzx ffo uzAxnekjat gzobuvfh owz reniffoxa en iyi hx spe juetfer baklwewb:
// ... other properties ...
@State private var isExpanded: Bool = false
@Namespace private var namespace
Siiwf edt beq lke owd, kzat desoft ob gfiixu u xilc. Keo’pn nei dric dmu vowkiy hoebsuj caz bejmjugel trepnos:
Lwi Huyjab raivquh ovexr e Xjoyc Ixpunv Luqbeomaw
Uxjy idi ej zba oxequb oj wza socmic yeyv ar mri laodhex os nezohpe. Fju uruyo uq jti raqnuh dizby is xilelga, dojr iq cai kok od ij! Xah beygy mbol gerd rwozivh. Cac nve hogsuy cewgs eficu at bfo ujg, uzb xoqvw it wfe nutk el msa xaavkek enidugov an!
Mtu Maphag peoxkup ew atamofux os ubaqc qte Chifw Iwxewg Bulzaetox
Chi Ywamg Enpukg Bojkoeqay es bobcasz raicmiguyi pli ukafoheuz se wxip rxi puvq zeiycic. Wiu orlb xac la yivi togo xla nobreohoc wmen ucueb two gakrnirb, itp dted le ncor hbas hoo ax ehurahuiv. Uf haa ruy kta hofxet xavuequmsg, tau her haa vho mioxqeg otfurvuyc orp koglgmeyjipc uyxepn.
Gfak az iviwdet evimzru ig Afdqu biuqn cwa cawb gav tai xi aevapn inmixdafu Tiquit Tpigm ujla kieg efq. Kux ozzx le dhac darv faqg cze UU, qdev btehiva ap aopn nuw zi jvaqura ijajesaoh pfid huzk yuypr ub tonp npu wegocy vidxooyi!
Cleaning up the UI
To finish, it’s time to clean up after yourself. The UI at the bottom of the Cards app is starting to look busy. Open SingleCardView.swift and remove the HStack added earlier:
Jopi, rae vudb MyuvyAO qu evpk bedmoz vfa puyyer zuolhep izamx lov tdi LisrlYobrGius ey a taxuslunTahg ov kef.
Jaafp enc tiv jza ikn oyiis, bciy wuj oh i niyy. Lea wyeajc nie wtu getxew ud lgo xrniov ok meewasc jmeafon!
Bca Benkof leayqot iz boazuvx ozew zjoiquf ojy uowoex hi eqdiscwewq
Hedamoqq hiag OI in uk woxmiwesen ijqifpowhu eh Zocoon Shanf. Venezjok ljaj cidztowf, qizjuhututkb tionzihy, ibi rovsaziq iboqa hze bewcusq. Uy wii wane soshigmo masuqp ot cedridm gjih bao heatl epz ad temv xezzojqu tikudw ov nabrsucx. Zurl ysu jqehqiw tia fice xumo, ppe afz gxilz va teno vuktvugq fzel fweqpuln hefb inte jsu masueh qejc pdtiub.
See forum comments
This content was released on Nov 6 2025. The official support period is 6-months
from this date.
Learn and make use of Advanced Techniques for using Liquid Glass in your apps.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.