์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- raywenderlich
- designpattern
- visionOS
- RxSwift
- rxcocoa
- MVVM
- XCTest
- BOJ
- combine
- ํจ์คํธ์บ ํผ์ค
- ios
- UIKit
- Lv2
- CollectionView
- node.js
- SnapKit
- Flutter
- ํ๋ก๊ทธ๋๋จธ์ค
- BFS
- reactorkit
- SwiftUI
- Xcode
- tableView
- Kuring
- ๋ฐฑ์ค
- Swfit
- swift
- TCA
- realm
- arkit
Archives
- Today
- Total
๋ชฉ๋กGeometryReader (1)
lgvv98
[SwiftUI] GeometryReader
GeometryReader โ GeometryReader์ ๋ํด์ ์์๋ณด์. GeometryReader๋ ์ฝ๊ฒ ๋งํด์ ๋๋ฐ์ด์ค ๊ธฐ๊ธฐ๋ง๋ค ๋์ํ๊ธฐ ์ํจ์ด๋ค. ์,, ๋์ถฉ ์คํ ๋ ์ด์์์ด๋ผ๊ณ ์๊ฐํ๋ฉด ์ข์! โ ์ฝ๋ import SwiftUI enum Index { // enum์ผ๋ก ์ฒ๋ฆฌํ๋ค. case one, two, three } struct MyGeometryReaderVStack : View { @State var index: Index = .one // ์ด๊ธฐ ์ํ๋ one์ผ๋ก var body: some View{ // ๋ถ๋ชจ๋ทฐ์ ๋น์จ์ ์ฌ์ฉ ๊ฐ๋ฅํ๋ค. GeometryReader{ geometry in VStack{ Button(action:{ // ๋ฒํผ์ด ํด๋ฆญ๋์์๋ ๋ก์ง print("1๋ฒ์ด ํด๋ฆญ๋์..
apple/๐ SwiftUI & Combine
2022. 5. 19. 00:49