Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ios/Video/Features/RCTIMAAdsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
let adContainerView = UIView(frame: _video.bounds)
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Since translatesAutoresizingMaskIntoConstraints is set to false on line 39, the frame parameter passed to UIView(frame:) on line 34 is effectively ignored. Consider using UIView() instead for clarity, as the constraints will determine the view's size and position.

Suggested change
let adContainerView = UIView(frame: _video.bounds)
let adContainerView = UIView()

Copilot uses AI. Check for mistakes.
adContainerView.backgroundColor = .clear
_video.addSubview(adContainerView)

Check failure on line 37 in ios/Video/Features/RCTIMAAdsManager.swift

View workflow job for this annotation

GitHub Actions / Swift-Lint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
// added layout resize according to subview of video
adContainerView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
adContainerView.topAnchor.constraint(equalTo: _video.topAnchor),
adContainerView.bottomAnchor.constraint(equalTo: _video.bottomAnchor),
adContainerView.leadingAnchor.constraint(equalTo: _video.leadingAnchor),
adContainerView.trailingAnchor.constraint(equalTo: _video.trailingAnchor)
])

// Create ad display container for ad rendering.
let adDisplayContainer = IMAAdDisplayContainer(adContainer: adContainerView, viewController: _video.reactViewController())
Expand Down
Loading