Skip to content

Commit 94a2955

Browse files
committed
Update README.md
1 parent 65d4e10 commit 94a2955

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,7 @@ When you use the `addVector` command, you can dynamically add a new vector graph
5959
- The `clear` parameter determines whether existing vector layers should be removed before adding the new one. If set to `true`, all existing vector layers are cleared, and only the new layer will be displayed.
6060
- The vector layer will be laid out directly over the video stream, allowing it to appear as part of the video playback experience.
6161

62-
These commands allow developers to seamlessly manage vector elements over a video, providing flexible options for adding and removing visual enhancements during playback. By leveraging the `ShapeLayerBuilderProtocol`, developers can create custom vector graphics that integrate smoothly into the video content.
63-
64-
### ShapeLayerBuilderProtocol
65-
66-
```swift
67-
/// A protocol defining a builder for creating shape layers with a unique identifier.
68-
///
69-
/// Conforming types will be able to construct a CAShapeLayer based on provided frame, bounds, and center.
70-
@available(iOS 14, macOS 11, tvOS 14, *)
71-
public protocol ShapeLayerBuilderProtocol: Identifiable {
72-
73-
var id : UUID { get }
74-
75-
/// Builds a CAShapeLayer using specified geometry.
76-
///
77-
/// - Parameters:
78-
/// - geometry: A tuple containing frame, bounds, and center as `CGRect` and `CGPoint`.
79-
/// - Returns: A configured `CAShapeLayer`.
80-
@MainActor
81-
func build(with geometry: (frame: CGRect, bounds: CGRect)) -> CAShapeLayer
82-
83-
}
62+
These commands allow you to seamlessly manage vector elements over a video, providing flexible options for adding and removing visual enhancements during playback. By leveraging the `ShapeLayerBuilderProtocol`, you can create custom vector graphics that integrate smoothly into the video content.
8463

8564
### Additional Notes on Brightness and Contrast
8665

0 commit comments

Comments
 (0)