Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 화면전환
- Git
- uikit
- singleton
- escaping
- segue
- 글또
- self
- error
- viewlifecycle
- array
- class
- protocol
- NotificationCenter
- SWIFTUI
- calendar
- Animation
- PushNotification
- Refresh
- Switch
- http
- 고차함수
- IOS
- apns
- list
- Observer
- mvvm
- SWIFT
- struct
- ScrollView
Archives
- Today
- Total
목록lazyhgrid (1)
seong_hye, the developer

UIKit 에서는 COllectionView를 활용그렇다면 SwiftUI에서는 어떻게 할 수 있을까?📘 LazyVGrid & LazyHGridUICollectionView처럼 그리드 형태의 레이아웃을 수직(V) - 수평(H) 방향으로 스크롤 할 수 있게 해주는 컴포넌트 게으른(Lazy) 방식으로 화면에 보이는 셀만 그려서 성능을 높이는 방식 🔹 기본 코드✅ 세로 2열 컬렉션 뷰let columns = [GridItem(.flexible()), GridItem(.flexible())] //2열ScrollView { LazyVGrid(columns: columns, spacing: 15) { ForEach(0.. ✅ 가로 2열 컬렉션 뷰let rows = [GridItem(.fixed(100)),..
IOS/SwiftUI
2022. 8. 23.