일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Startign Assignments
- CLLocationManagerDelegate
- xcode로 날씨앱 만들기
- Protocol
- weatherKit
- dispatchsource
- 한국어 개인정보처리방침
- CoreLocation
- Required Reason API
- UIAlertAction
- Timer
- 러닝기록앱
- Xcode
- 단일 책임원칙
- SwiftUI Boolean 값
- 클로저의 캡슐화
- addannotation
- App Store Connect
- MKMapViewDelegate
- WeatherManager
- 서체관리자
- AnyObject
- swift
- 영문 개인정보처리방침
- RunningTimer
- MKMapItem
- 러닝타이머
- weak var
- font book
- UICollectionViewFlowLayout
- Today
- Total
VesselWheel
V, S, Z stack and divider 본문
//
// ContentView.swift
// ex03
//
// Created by tjoeun on 2023/04/15.
//
import SwiftUI
struct FirstText: View{
var body: some View{
Text("Hello, SwiftUI")
.padding()
.border(Color.blue, width:3)
.background(Color.green)
}
}
struct ContentView: View {
var body: some View {
VStack{
HStack {
FirstText()
FirstText()
FirstText()
}
Divider()
HStack(alignment: .top, spacing: 10){
FirstText()
FirstText()
FirstText()
}
Divider()
VStack {
FirstText()
FirstText()
FirstText()
}
Divider()
// 상하방향 정렬
ZStack{
Color.yellow.edgesIgnoringSafeArea(.all)
Color.red.frame(width:200, height:200)
Color.blue.frame(width: 100, height: 100)
}
.padding()
.border(Color.red, width:3)
Divider()
HStack(alignment: .center, spacing:10){
Text("Hellow").font(.caption)
Text("Hellow")
Text("Hellow").font(.title)
Text("Hellow").font(.largeTitle)
}
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
'Xcode Study' 카테고리의 다른 글
scaledToFit: 이미지의 가로나 세로가 긴 쪽이 프레임의 테두리(border)에 닿으면 크기가 정해짐 (0) | 2023.10.16 |
---|---|
Stack with spacer() (0) | 2023.10.16 |
문자를 화면에 출력하는 컨트롤 (0) | 2023.10.16 |
ContentView(SwiftUI) (0) | 2023.10.16 |
Raw String (0) | 2023.10.16 |