Skip to content

Commit 0350d23

Browse files
committed
Expose CGAffineTransform.identity as public API
1 parent fe9d4db commit 0350d23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/Silica/CGAffineTransform.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ public struct CGAffineTransform {
3535
self.tx = tx
3636
self.ty = ty
3737
}
38-
39-
public static var identity: CGAffineTransform { CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0) }
4038
}
4139

4240
#endif
41+
42+
public extension CGAffineTransform {
43+
44+
static var identity: CGAffineTransform { CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0) }
45+
}
4346

4447
// MARK: - Geometry Math
4548

0 commit comments

Comments
 (0)