Skip to content

Commit b5ba5d7

Browse files
committed
refactoring
1 parent c4ac0cf commit b5ba5d7

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

Sources/swiftui-loop-videoplayer/LoopPlayerView.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ public struct LoopPlayerView: View {
4545
self._command = command
4646

4747
_settings = .constant(
48-
VideoSettings {
49-
SourceName(fileName)
50-
Ext(ext)
51-
Gravity(gravity)
52-
ErrorGroup {
53-
EColor(eColor)
54-
EFontSize(eFontSize)
48+
VideoSettings {
49+
SourceName(fileName)
50+
Ext(ext)
51+
Gravity(gravity)
52+
ErrorGroup {
53+
EColor(eColor)
54+
EFontSize(eFontSize)
55+
}
5556
}
56-
}
5757
)
5858
}
5959

Sources/swiftui-loop-videoplayer/ext+/Array+.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99

10-
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1110
extension Array where Element == Setting{
1211

1312
/// Find first setting by case name

Sources/swiftui-loop-videoplayer/view/loop/main/LoopPlayerMultiPlatform.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct LoopPlayerMultiPlatform: LoopPlayerViewProtocol {
3737
typealias PlayerView = LoopingPlayerNSView
3838
#endif
3939

40+
/// Command for the player view
4041
@Binding public var command : PlaybackCommand
4142

4243
/// Settings for the player view
@@ -166,6 +167,3 @@ fileprivate func getAssetIfChanged(for settings: VideoSettings, and asset: AVURL
166167

167168
return nil
168169
}
169-
170-
171-

0 commit comments

Comments
 (0)