We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1afa3 commit 8b02317Copy full SHA for 8b02317
Sources/swiftui-loop-videoplayer/ExtVideoPlayer.swift
@@ -113,10 +113,18 @@ public struct ExtVideoPlayer: View{
113
}
114
115
116
+// MARK: - Fileprivate
117
+
118
+/// Filters a list of `PlayerEvent` instances based on the provided `VideoSettings`.
119
+///
120
+/// - Parameters:
121
+/// - settings: The video settings containing event filters.
122
+/// - events: The list of events to be filtered.
123
+/// - Returns: A filtered list of `PlayerEvent` that match at least one filter in `settings`.
124
fileprivate func filterEvents(with settings: VideoSettings, for events: [PlayerEvent]) -> [PlayerEvent] {
125
let filters = settings.events // `[PlayerEventFilter]`
126
- // If no filters are provided, return an empty array (or all events—your choice).
127
+ // If no filters are provided, return an empty array.
128
guard !filters.isEmpty else {
129
return []
130
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments