You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+31
Original file line number
Diff line number
Diff line change
@@ -42,3 +42,34 @@ struct MyView: View {
42
42
6. Select the generator, navigate to the generator inspector, and drag the top level directory of your Swift package into the "Package Path" text field.
43
43
7. Press the "Compile" button to compile your view. It should now be displayed in your video timeline.
44
44
8. Any time you make a change to your package you will need to press the "Compile" button again.
45
+
46
+
### Environment Values
47
+
48
+
To access environment values in your SwiftUI view:
3. Access the environment value using the `Environment` property wrapper.
64
+
```swift
65
+
@Environment(\.timelineTime) var timelineTime: CMTime
66
+
@Environment(\.timelineTimeRange) var timelineTimeRange: CMTimeRange
67
+
@Environment(\.generatorTimeRange) var generatorTimeRange: CMTimeRange
68
+
```
69
+
70
+
### Development
71
+
72
+
1. Clone the repository.
73
+
2. Run `swift build -c release --arch arm64 --arch x86_64` at the top level of the repository.
74
+
3. Change the code sign identity in the build script phases of Plugin ("Copy and Code Sign FxPlug.framework" and "Copy and Code Sign PluginManager.framework").
0 commit comments