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 |
Tags
- 스유
- 1일1알골
- SwiftUI
- 후기
- 멋사
- Protocol
- 위젯킷
- 백준
- 스위프트
- c++
- 알고리즘
- widget
- uikit
- 대외활동
- Swift
- 네트워크
- 영남대
- composable architecture
- dispatchqueue
- TCA
- cs
- 문법
- spritekit
- 웹
- 리액트
- 운영체제
- 컴퓨터그래픽스
- swift concurrency
- widgetkit
- 멋쟁이사자처럼
Archives
- Today
- Total
목록GeometryReader (1)
맛동산이
SwiftUI) GeometryReader에 대해서 알아보자
우선 GeometryReader가 도큐먼트에 쓰여있는 정의를 번역하자면, GeometryReader는 그 자체로 ‘View’이며, container 안 View 스스로의 크기와 위치를 함수로 정의한다고 소개되어있다.GeometryReader를 사용하지 않는 코드struct ContentView: View { @State var isPresented = false var body: some View { VStack { Text("this is View") .padding() RightView() } } } struct RightView: View { var body: some View { Rectangle().foregroundColor(.blue) } }처음뷰는 기존의 VStack을 사용하는 방법과 동일..
앱/SwiftUI
2023. 7. 5. 01:12