From 537764445616d4ca67e04f2e9e451c59676bb643 Mon Sep 17 00:00:00 2001 From: Michael Knoch Date: Wed, 31 Jul 2024 12:42:07 +0200 Subject: [PATCH 1/3] add new API --- Sources/AffineTransform.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/AffineTransform.swift b/Sources/AffineTransform.swift index f9fe6a2e..dc22dc3c 100644 --- a/Sources/AffineTransform.swift +++ b/Sources/AffineTransform.swift @@ -133,6 +133,10 @@ extension AffineTransform { let α = angle * .pi / 180 self.init(rotationByRadians: α) } + + public init(rotationAngle: CGFloat) { + self.init(rotationByRadians: rotationAngle) + } } extension AffineTransform { @@ -359,4 +363,4 @@ extension AffineTransform: CustomStringConvertible { public var debugDescription: String { return description } -} \ No newline at end of file +} From eba0cd48c7adf959699889775244ae65d0ef8b23 Mon Sep 17 00:00:00 2001 From: Michael Knoch Date: Wed, 31 Jul 2024 12:45:54 +0200 Subject: [PATCH 2/3] cleanup --- Sources/AffineTransform.swift | 4 ---- Sources/CGAffineTransform.swift | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/AffineTransform.swift b/Sources/AffineTransform.swift index dc22dc3c..debcf7bb 100644 --- a/Sources/AffineTransform.swift +++ b/Sources/AffineTransform.swift @@ -133,10 +133,6 @@ extension AffineTransform { let α = angle * .pi / 180 self.init(rotationByRadians: α) } - - public init(rotationAngle: CGFloat) { - self.init(rotationByRadians: rotationAngle) - } } extension AffineTransform { 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 } - } From 2140bec195323ebc9923f975ee4c2c904ae69b08 Mon Sep 17 00:00:00 2001 From: Michael Knoch Date: Wed, 7 Aug 2024 18:42:24 +0200 Subject: [PATCH 3/3] update xcode --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index e7e2fef6..80c34f94 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,7 @@ jobs: build: macos: - xcode: "15.1.0" + xcode: "15.4.0" steps: - checkout - run: git submodule update --recursive --init