SwiftUI Responsive UI | UserInterfaceSizeClass | ViewThatFits | Episode 37
Автор: Code With Ahmed
Загружено: 2023-05-13
Просмотров: 546
Landscape Vs Portrait.
UserInterfaceSizeClass: (iOS 13 and above): Collection/Set of values that indicates the visual size available to the view. This value tells us about the amount of space available to our views in given direction. We can read size class value from Environment. There are two types of size classes.
1) VerticalSizeClass
2) HorizontalSizeClass
ViewThatFits: (iOS 16 and above): It is a view that adapts to available space by providing first child view that fits. It evaluates its child views in the order we provide to init. It selects first child whose ideal size on provided axes fits within proposed size. We need to provide views in order of preference. Usually this order is largest to smallest. Be default, it has both horizontal and vertical axes.
Medium Article: / swiftui-responsive-ui-userinterfacesizecla...
Device size classes: https://developer.apple.com/design/hu...
Github Link: https://github.com/meetAhmed/SwiftUIP...
Playlist Link: • SwiftUI for Beginners
#swiftui #swiftuitutorial #swiftuiforbeginners #swiftuiappdesign #iOSDevelopment #SwiftProgrammingLanguage #MobileDevelopment #Xcode #SwiftUIFramework #SwiftUI #Tutorial #XCode #iOSDeveloper
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: