|
@@ -35,6 +35,7 @@ import Combine
|
|
|
/// ``KFAnimatedImage`` conform this type and should be used in your app to represent an image view with network and
|
|
/// ``KFAnimatedImage`` conform this type and should be used in your app to represent an image view with network and
|
|
|
/// cache support in SwiftUI.
|
|
/// cache support in SwiftUI.
|
|
|
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
|
|
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
|
|
|
|
|
+@MainActor
|
|
|
public protocol KFImageProtocol: View, KFOptionSetter {
|
|
public protocol KFImageProtocol: View, KFOptionSetter {
|
|
|
associatedtype HoldingView: KFImageHoldingView
|
|
associatedtype HoldingView: KFImageHoldingView
|
|
|
var context: KFImage.Context<HoldingView> { get set }
|
|
var context: KFImage.Context<HoldingView> { get set }
|
|
@@ -103,6 +104,7 @@ extension KFImageProtocol {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
|
|
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
|
|
|
|
|
+@MainActor
|
|
|
public protocol KFImageHoldingView: View {
|
|
public protocol KFImageHoldingView: View {
|
|
|
associatedtype RenderingView
|
|
associatedtype RenderingView
|
|
|
static func created(from image: KFCrossPlatformImage?, context: KFImage.Context<Self>) -> Self
|
|
static func created(from image: KFCrossPlatformImage?, context: KFImage.Context<Self>) -> Self
|