1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import Foundation
- protocol Transformable {
-
-
-
-
-
-
- func applying(_ transform: CGAffineTransform) -> Self
- }
- extension Transformable {
-
-
-
-
-
-
- func applyTransforms(_ transforms: [CGAffineTransform]) -> Self {
-
- var transformableObject = self
-
- transforms.forEach { (transform) in
- transformableObject = transformableObject.applying(transform)
- }
-
- return transformableObject
- }
-
- }
|