Рет қаралды 1,284
In this video, you will learn how to get the size of a view in SwiftUI, as well as how to update it when the size changes, and create a useful extension for it.
Link to the repository: github.com/mikina/GetViewSize...
00:00 Intro
00:26 Sample app
01:29 Add GeometryReader
02:10 The wrong way of using it
02:44 The best way
06:23 Use PreferenceKey
09:57 Create an extension
11:46 Outro
#iOS #SwiftUI #programming
Music: Streambeats