Skip to content

SwiftUI

example#

ObservableObject

@ObservedObject @State @Binding @Published @Environment

@Environment(.presentationMode)

@ViewBuilder @Observable

차이점 사용예

ZStack

VStack

HStack leading tail 안됨

LazyVStack

GeometryReader

NavigationView NavigationStack 비교분석 사용에 대한 차이 List vs ScrollView 성능이슈, 비교분석 Section NavigationLink

https://medium.com/@hagjini0/swiftui-navigationlink-navigationstack-알아보기-8a22eaddfddc https://stackoverflow.com/questions/65868660/swiftui-how-to-present-a-fullscreencover-sideways

Spacer Divider

이에 따르는 옵션들

Image Set Scales: Single Scale, Individual Scale 차이

fullScreenCover vs NavigationLink

ForEach vs for

//List 백그라운드 컬러 scrollContentBackground(.hidden) //ios 16 이상

https://sarunw.com/posts/swiftui-list-background-color/

ignoresSafeArea()

Equatable Identifiable Codable

Image - clipped https://ai-hong.tistory.com/207

Text Alignment

https://stackoverflow.com/questions/56443535/swiftui-text-alignment

uicollectionview https://www.kodeco.com/18895088-uicollectionview-tutorial-getting-started?page=3#toc-anchor-012

https://www.avanderlee.com/swift/lazy-collections-arrays/

Comments