AnyLayout and Custom Layouts in iOS 16
Автор: Stewart Lynch
Загружено: 2022-11-27
Просмотров: 3796
Описание:
In this video I am going to be showing you the new AnyLayout; the type-erased instance of the layout protocol that allows you to dynamically change the type of layout container without destroying the stat of the subviews.
In addition to the standard HStack, VStack and ZStack layout types we will also be creating our own Custom Layout to add to the mix.
If you want to support my work, you can buy me a coffee :)
https://ko-fi.com/stewartlynch
Table of Contents:
0:00 Introduction
1:15 How we did this before iOS 16
3:36 AnyLayout
6:22 Enum for switching layouts
10:00 Custom Layout
Starter Project Files:
https://www.createchsol.com/StarterPr...
Completed Project:
https://github.com/StewartLynch/AnyLa...
My Higher Order Function Videos
reduce, filter, removeAll
• reduce, filter, removeAll
map, compactMap, flatMap
• map, compactMap flatMap
contains, forEach, sorted
• contains, forEach, sorted
Swift Collection Control Loops
• Swift Collection Control Loops
Article References mentioned in video:
SwiftUI AnyLayout: Changing Layout with HStack and VStack
https://www.appcoda.com/swiftui-anyla...
SwiftUI AnyLayout - smooth transitions between layout types
https://sarunw.com/posts/swiftui-anyl...
The Layout Protocol in iOS 16 Mark Lucking
https://betterprogramming.pub/the-lay...
The Layout Protocol
https://talk.objc.io/episodes/S01E308...
The SwiftUI Layout Protocol - Part 1 - The SwiftUI Lab
https://swiftui-lab.com/layout-protoc...
The SwiftUI Layout Protocol - Part 2 - The SwiftUI Lab
https://swiftui-lab.com/layout-protoc...
Custom Layout in SwiftUI
https://sarunw.com/postsz /swiftui-custom-layout/
Composing custom layouts with SwiftUI
https://developer.apple.com/documenta...
Other References:
Stewart Lynch's YouTube Channel:
/ stewartlynch
Stewart Lynch on Twitter:
/ stewartlynch
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: