博主使用IOS开发框架:SWIFTUI
安装方式:
CocoaPods
pod 'Kingfisher/SwiftUI'
SwiftUI support is provided in a sub-spec. So instead of specifying
pod 'Kingfisher'
, you need
pod 'Kingfisher/SwiftUI'
.
Swift文件中加载方法:
import struct Kingfisher.KFImag