[SwiftUI] Image
Image를 어떻게 사용하는지 알아보자 import SwiftUI struct CircleImageView: View { var body: some View { Image("profile") // 사이즈 조절 .resizable() // 비율 조절 .scaledToFit() // .aspectRatio(contentMode: .fill) // 크기 조절 .frame(width: 300, height: 300) // 이미지 자르기 // .clipped() .clipShape(Circle()) // 그림자 .shadow(color: .gray, radius: 2, x: 5, y: 10) // Overlay .overlay(Circle().stroke(Color.red, lineWidth: 4)) // 라운드..
iOS/SwiftUI
2022. 4. 24. 15:45
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Protocol
- Xcode
- Generic
- kakao
- tabview
- AWS
- onTapGesture
- file private
- strcut
- 카메라
- SwiftUI
- 의미있는이름
- OCR
- AWS Fargate
- CodingTest
- frame과 bounds 차이
- 곰튀김
- Git
- enumerations
- Login
- Custom
- rxswift
- IOS
- delegate
- Swift
- docker
- ChatGPT
- MVVM
- navigation
- ObservedObject
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함