- KFImage placeholder 사용법
KFImage.url(URL(string:""))
.placeholder {
Image("assetImage")
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: UIScreen.main.bounds.width, height: 160)
}
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: UIScreen.main.bounds.width, height: 160)
'SwiftUI' 카테고리의 다른 글
[SwiftUI] SwiftUI의 디자인 패턴 적용이 필요한가? (1) | 2024.01.23 |
---|---|
[SwiftUI] ObservableObject 강제 새로고침 하는 법 (0) | 2022.10.18 |