SwiftUI

[SwiftUI] KFImage placeholder 사용법

웰코발 2022. 10. 18. 23:03
  • 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)