Skip to content

Commit 351b984

Browse files
committed
comments
1 parent dc25617 commit 351b984

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

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

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

88
import Foundation
99

10+
@available(iOS 14.0, macOS 11.0, tvOS 14.0, *)
1011
/// An enumeration of possible errors that can occur in the video player.
1112
public enum VPErrors: Error, CustomStringConvertible, Sendable {
1213

Sources/swiftui-loop-videoplayer/fn/constraintsFn.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import Foundation
1010
#if os(macOS)
1111
import AppKit
1212

13+
/// Activates full-screen constraints for a given view within its container view.
14+
/// This method sets up constraints to make the `view` fill the entire `containerView`.
15+
/// - Parameters:
16+
/// - view: The view for which full-screen constraints will be applied.
17+
/// - containerView: The parent view in which `view` will be constrained to match the full size.
1318
func activateFullScreenConstraints(for view: NSView, in containerView: NSView) {
1419
view.translatesAutoresizingMaskIntoConstraints = false
1520
NSLayoutConstraint.activate([

Sources/swiftui-loop-videoplayer/view/loop/mac/LoopPlayerViewMacOS.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ struct LoopPlayerViewMacOS: NSViewRepresentable, LoopPlayerViewProtocol {
7474
PlayerErrorCoordinator($error)
7575
}
7676
}
77-
7877
#endif

0 commit comments

Comments
 (0)