diff --git a/Sources/AffineTransform.swift b/Sources/AffineTransform.swift index f9fe6a2e..debcf7bb 100644 --- a/Sources/AffineTransform.swift +++ b/Sources/AffineTransform.swift @@ -359,4 +359,4 @@ extension AffineTransform: CustomStringConvertible { public var debugDescription: String { return description } -} \ No newline at end of file +} diff --git a/Sources/CGAffineTransform.swift b/Sources/CGAffineTransform.swift index 846843ac..4db65189 100644 --- a/Sources/CGAffineTransform.swift +++ b/Sources/CGAffineTransform.swift @@ -13,8 +13,11 @@ public extension CGAffineTransform { self.init(scaleByX: scaleX, byY: y) } + init(rotationAngle: CGFloat) { + self.init(rotationByRadians: rotationAngle) + } + var isIdentity: Bool { return self == .identity } - }