Ver Fonte

Remove image transition from unsupported platforms

onevcat há 7 anos atrás
pai
commit
1dd13435d8
1 ficheiros alterados com 1 adições e 19 exclusões
  1. 1 19
      Sources/Image/ImageTransition.swift

+ 1 - 19
Sources/Image/ImageTransition.swift

@@ -24,25 +24,7 @@
 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  THE SOFTWARE.
 
-#if os(macOS)
-// Not implemented for macOS and watchOS yet.
-/// Image transition is not supported on macOS.
-public enum ImageTransition {
-    case none
-    var duration: TimeInterval {
-        return 0
-    }
-}
-
-#elseif os(watchOS)
-/// Image transition is not supported on watchOS.
-public enum ImageTransition {
-    case none
-    var duration: TimeInterval {
-        return 0
-    }
-}
-#else
+#if os(iOS) || os(tvOS)
 import UIKit
 
 /// Transition effect which will be used when an image downloaded and set by `UIImageView`