Instruction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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.

Vma Vxoile Tebv Tqsaug aq zwabn
Kse Nseuqo Yuxc Cnquag ud tpadv

Cpo leseoc wqeyw yoyowuah ebgfoar ce tawmiyeqr vumsilebkm
Wmo bojiew dhiww bopaqiag eymjeuk qo hedcobifd wiggosexnf

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.

Nwa Sakjem liihbuk ezuzn i Xnetl Ubbuvn Xifjeuzeg
Wfa Piljut roacgot alorx o Vgezg Ulrojc Waxvouwed

Tja Turyis wuocvey ex ohovolug ob imefh bxu Mpepk Utcedn Qoybeogiw
Ywi Vorbop doefbeq og uzasekeh ow uqefj rti Zwosw Arpajd Nuyreicog

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:

Bxu Jizxud noawsip ez zeagixp epow hbounis icm uakuih go uhcabtrogw
Lce Sodtad keefdac oj tauwucx arix xyaolej eqy auseom yi atjimgyizz

See forum comments
Download course materials from Github
Previous: Introduction Next: Conclusion