[SWIFT]LazyVGrid

힐링힐링·2023년 10월 16일
0

SwiftUI

목록 보기
3/14
struct ClassExampleView: View {
    
    let column: [GridItem] = [GridItem(.flexible()), GridItem(.flexible()), GridItem(.flexible())]

    var body: some View {
        LazyVGrid(columns: column){
            Text("Hell-o?")
                .background(Color.mint)
            Text("Hell-o?")
                .background(Color.blue)
            Text("Hell-o?")
                .background(Color.red)
            
            Text("Hell-o?")
                .background(Color.mint)
            Text("Hell-o?")
                .background(Color.blue)
            Text("Hell-o?")
                .background(Color.red)
        }
    }
}

profile
블로그 이전합니다 https://james-kim-tech.tistory.com/

0개의 댓글