瀏覽代碼

Merge pull request #2382 from onevcat/fix/conflicting-declaration

Remove incorrect watchOS available declare
Wei Wang 9 月之前
父節點
當前提交
a1704c5e75
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Sources/SwiftUI/ImageContext.swift
  2. 1 1
      Sources/SwiftUI/KFAnimatedImage.swift

+ 1 - 1
Sources/SwiftUI/ImageContext.swift

@@ -132,7 +132,7 @@ extension KFImage.Context: Hashable {
 }
 
 #if !os(watchOS)
-@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
+@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
 extension KFAnimatedImage {
     public typealias Context = KFImage.Context
     typealias ImageBinder = KFImage.ImageBinder

+ 1 - 1
Sources/SwiftUI/KFAnimatedImage.swift

@@ -28,7 +28,7 @@
 import SwiftUI
 import Combine
 
-@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
+@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
 public struct KFAnimatedImage: KFImageProtocol {
     public typealias HoldingView = KFAnimatedImageViewRepresenter
     public var context: Context<HoldingView>