티스토리 뷰
728x90
반응형
var body: some View {
Image("featuredImage1")
.resizable()
.scaledToFill()
.cornerRadius(5)
// overlay 를 통해서 border 를 추가할 수 있다.
.overlay(RoundedRectangle(cornerRadius: 5)
.stroke(Color.secondary, lineWidth: 0.2))
}
}
728x90
반응형
'SwiftUI' 카테고리의 다른 글
SwiftUI) Marterial 이란? (Widget transparent/blur background..?) (0) | 2022.12.01 |
---|---|
SwiftUI) ViewBuilder (2) | 2022.06.17 |
SwiftUI) GeometryReader, GeometryProxy 알아보자! (0) | 2022.05.10 |
SwiftUI) ForEach 에서 index 도 사용하기 (0) | 2022.04.21 |
댓글
TAG
- UserDefaults
- APNS
- WidgetKit
- projectsetting
- urlsession
- WWDC
- github
- OpenSourceLibrary
- Widget
- WWDC22
- MOYA
- containerBackground
- CloneCoding
- 서버통신
- Notification
- rxswift
- YPImagePicker
- configurable widget
- SwiftUI
- Firebase
- 2022 KAKAO TECH INTERNSHIP
- watchOS
- Protocol
- async/await
- Algorithm
- IOS
- Objective-C
- RxCocoa
- Swift
- MVVM
최근에 올라온 글
최근에 달린 댓글
글 보관함
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
링크
- Total
- Today
- Yesterday