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: Sources/swiftui-loop-videoplayer/enum/PlaybackCommand.swift
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,11 @@ public enum PlaybackCommand: Equatable {
55
55
case contrast(Float)
56
56
57
57
/// Command to apply a specific Core Image filter to the video.
58
-
/// - Parameter filter: A `CIFilter` object representing the filter to be applied.
59
-
/// This filter is added to the current stack of filters, allowing for multiple filters to be combined and applied sequentially.
60
-
case filter(CIFilter)
58
+
/// - Parameters:
59
+
/// - filter: A `CIFilter` object representing the filter to be applied.
60
+
/// - clear: A Boolean value indicating whether to clear the existing filter stack before applying this filter.
61
+
/// This filter is added to the current stack of filters, allowing for multiple filters to be combined and applied sequentially, unless `clear` is true.
62
+
case filter(CIFilter, clear:Bool=false)
61
63
62
64
/// Command to remove all applied filters from the video playback.
63
65
case removeAllFilters
@@ -94,8 +96,8 @@ public enum PlaybackCommand: Equatable {
0 commit comments