Skip to content

Commit f3d1b88

Browse files
committed
update available
1 parent e16b100 commit f3d1b88

File tree

12 files changed

+13
-11
lines changed

12 files changed

+13
-11
lines changed

Sources/swiftui-loop-videoplayer/LoopPlayerView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
//
77

88
import SwiftUI
9+
#if canImport(AVKit)
910
import AVKit
11+
#endif
1012

1113
/// Player view for running a video in loop
1214
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)

Sources/swiftui-loop-videoplayer/enum/Setting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AVKit
1010
import SwiftUI
1111

1212
/// Settings for loop video player
13-
@available(iOS 14.0, *)
13+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1414
public enum Setting: Equatable{
1515

1616
/// File name

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

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

88
import Foundation
99

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

1313
/// Find first setting by case name

Sources/swiftui-loop-videoplayer/protocol/SettingsConvertible.swift

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

88
import Foundation
99

10-
@available(iOS 14.0, *)
10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1111
/// Protocol for building blocks
1212
public protocol SettingsConvertible {
1313

Sources/swiftui-loop-videoplayer/settings/Ext.swift

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

88
import Foundation
99

10-
@available(iOS 14.0, *)
10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1111
public struct Ext: SettingsConvertible{
1212

1313
/// Video file extension

Sources/swiftui-loop-videoplayer/settings/FileName.swift

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

88
import Foundation
99

10-
@available(iOS 14.0, *)
10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1111
public struct FileName : SettingsConvertible{
1212

1313
/// Video file name

Sources/swiftui-loop-videoplayer/settings/Gravity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import AVKit
1010

11-
@available(iOS 14.0, *)
11+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1212
public struct Gravity : SettingsConvertible{
1313

1414
/// Video gravity spec

Sources/swiftui-loop-videoplayer/settings/errors/EColor.swift

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

88
import SwiftUI
99

10-
@available(iOS 14.0, *)
10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1111
public struct EColor: SettingsConvertible{
1212

1313
/// Error color

Sources/swiftui-loop-videoplayer/settings/errors/EFontSize.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import CoreGraphics
1010

11-
@available(iOS 14.0, *)
11+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1212
public struct EFontSize: SettingsConvertible{
1313

1414
/// Font size value

Sources/swiftui-loop-videoplayer/settings/errors/ErrorGroup.swift

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

88
import Foundation
99

10-
@available(iOS 14.0, *)
10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1111
public struct ErrorGroup: SettingsConvertible{
1212

1313
/// Errors settings

Sources/swiftui-loop-videoplayer/utils/Settings.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import SwiftUI
99
import AVKit
1010

11-
@available(iOS 14.0, *)
11+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1212
public struct Settings{
1313

1414
// MARK: - Public properties

Sources/swiftui-loop-videoplayer/utils/SettingsBuilder.swift

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

88
import SwiftUI
99

10-
@available(iOS 14.0, *)
10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1111
@resultBuilder
1212
public struct SettingsBuilder{
1313

0 commit comments

Comments
 (0)