| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- WeatherManager
- xcode로 날씨앱 만들기
- RunningTimer
- 서체관리자
- 러닝기록앱
- 러닝타이머
- MKMapItem
- Timer
- Startign Assignments
- Protocol
- dispatchsource
- CLLocationManagerDelegate
- Required Reason API
- CoreLocation
- weatherKit
- SwiftUI Boolean 값
- UIAlertAction
- weak var
- swift
- UICollectionViewFlowLayout
- Xcode
- 영문 개인정보처리방침
- 한국어 개인정보처리방침
- AnyObject
- font book
- MKMapViewDelegate
- 단일 책임원칙
- 클로저의 캡슐화
- addannotation
- App Store Connect
- Today
- Total
VesselWheel
Stack with spacer() 본문

//
// ContentView.swift
// ex04
//
// Created by tjoeun on 2023/04/15.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack{
VStack {
Spacer()
Color.yellow.frame(height: 100)
Spacer()
Color.red.frame(height: 100)
Spacer()
}
HStack(){
Spacer()
Color.yellow.frame(width: 100)
Spacer()
Color.red.frame(width: 100)
Spacer()
}
VStack{
Divider()
Color.yellow.frame(height: 100)
Divider()
Color.red.frame(height: 100)
Divider()
}
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
'Xcode Study' 카테고리의 다른 글
| 버튼 기능 구현하기 by ContentView (0) | 2023.10.17 |
|---|---|
| scaledToFit: 이미지의 가로나 세로가 긴 쪽이 프레임의 테두리(border)에 닿으면 크기가 정해짐 (0) | 2023.10.16 |
| V, S, Z stack and divider (0) | 2023.10.16 |
| 문자를 화면에 출력하는 컨트롤 (0) | 2023.10.16 |
| ContentView(SwiftUI) (0) | 2023.10.16 |