Skip to content

Commit

Permalink
Expose CGAffineTransform.identity as public API
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 15, 2024
1 parent fe9d4db commit 0350d23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Silica/CGAffineTransform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ public struct CGAffineTransform {
self.tx = tx
self.ty = ty
}

public static var identity: CGAffineTransform { CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0) }
}

#endif

public extension CGAffineTransform {

static var identity: CGAffineTransform { CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0) }
}

// MARK: - Geometry Math

Expand Down

0 comments on commit 0350d23

Please sign in to comment.