Просмотр исходного кода

Merge pull request #1872 from onevcat/fix/playground

Remove conflicting name spacing to allow using in playground
Wei Wang 4 лет назад
Родитель
Сommit
a8a1250913
2 измененных файлов с 1 добавлено и 4 удалено
  1. 1 1
      Sources/General/KFOptionsSetter.swift
  2. 0 3
      Sources/Image/ImageProcessor.swift

+ 1 - 1
Sources/General/KFOptionsSetter.swift

@@ -476,7 +476,7 @@ extension KFOptionSetter {
     ///   - backgroundColor: Background color of the output image. If `nil`, it will use a transparent background.
     /// - Returns: A `Self` value with changes applied.
     public func roundCorner(
-        radius: RoundCornerImageProcessor.Radius,
+        radius: Radius,
         targetSize: CGSize? = nil,
         roundingCorners corners: RectCorner = .all,
         backgroundColor: KFCrossPlatformColor? = nil

+ 0 - 3
Sources/Image/ImageProcessor.swift

@@ -353,9 +353,6 @@ public enum Radius {
 ///
 public struct RoundCornerImageProcessor: ImageProcessor {
 
-    /// Represents a radius specified in a `RoundCornerImageProcessor`.
-    public typealias Radius = Kingfisher.Radius
-
     /// Identifier of the processor.
     /// - Note: See documentation of `ImageProcessor` protocol for more.
     public let identifier: String