Skip to content

Commit 7a2ffc4

Browse files
committed
Fix Demos
1 parent 5708ce5 commit 7a2ffc4

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Demos/DecomposedObjectiveC/DecomposedObjectiveC/ViewController.mm

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import "ViewController.h"
1010

1111
#import <Decomposed/Decomposed.h>
12-
//#import <Decomposed/Decomposed-Swift.h>
1312

1413
@interface ViewController ()
1514

Demos/DecomposedSwiftUI/DecomposedSwiftUI/ContentView.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ fileprivate func transformAt(_ percent: CGFloat) -> CATransform3D {
1414
let startingTransform =
1515
CATransform3DIdentity
1616
.translatedBy(x: -100.0, y: -200.0)
17-
.rotated(by: Quaternion(angle: .pi * 2.0, axis: Vector3(1.0, 0.0, 0.0)))
18-
.rotated(by: Quaternion(angle: .pi * 2.0, axis: Vector3(0.0, 1.0, 0.0)))
17+
.rotated(by: CGQuaternion(angle: .pi * 2.0, axis: CGVector3(1.0, 0.0, 0.0)))
18+
.rotated(by: CGQuaternion(angle: .pi * 2.0, axis: CGVector3(0.0, 1.0, 0.0)))
1919
.applyingPerspective(m34: 1.0 / 500.0)
2020

2121
let finalTransform =
2222
CATransform3DIdentity
2323
.translatedBy(x: 100.0, y: 300.0)
24-
.rotated(by: Quaternion(angle: .pi / 2.0, axis: Vector3(1.0, 0.0, 0.0)))
25-
.rotated(by: Quaternion(angle: .pi / 2.0, axis: Vector3(0.0, 1.0, 0.0)))
24+
.rotated(by: CGQuaternion(angle: .pi / 2.0, axis: CGVector3(1.0, 0.0, 0.0)))
25+
.rotated(by: CGQuaternion(angle: .pi / 2.0, axis: CGVector3(0.0, 1.0, 0.0)))
2626
.applyingPerspective(m34: 1.0 / 500.0)
2727

2828
return startingTransform.lerp(to: finalTransform, fraction: percent)

Demos/DraggingCard/DraggingCard.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)