Skip to content

Commit

Permalink
Skip button improvements (#660)
Browse files Browse the repository at this point in the history
* feat: set default skip button position to topLeft

* fix: update test
  • Loading branch information
OlenaPostindustria authored Jun 3, 2022
1 parent eeb3f37 commit e1d35ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,5 @@ public class VideoControlsConfiguration: NSObject {
private var _closeButtonPosition = Position.topRight

private var _skipButtonArea = PBMConstants.BUTTON_AREA_DEFAULT.doubleValue
private var _skipButtonPosition = Position.topRight
private var _skipButtonPosition = Position.topLeft
}
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class PBMVideoViewTest: XCTestCase, PBMCreativeResolutionDelegate, PBMCreativeVi
}

XCTAssertEqual(videoView.skipButtonDecorator.buttonArea, 0.1)
XCTAssertEqual(videoView.skipButtonDecorator.buttonPosition, .topRight)
XCTAssertEqual(videoView.skipButtonDecorator.buttonPosition, .topLeft)
XCTAssertEqual(videoView.skipButtonDecorator.button.image(for: .normal), UIImage(named: "PBM_skipButton", in: PBMFunctions.bundleForSDK(), compatibleWith: nil))
XCTAssertEqual(videoView.skipButtonDecorator.button.isHidden, true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class VideoControlsConfigTests: XCTestCase {

func testDefaultSkipButtonPosition() {
let adConfiguration = VideoControlsConfiguration()
XCTAssertEqual(adConfiguration.skipButtonPosition, .topRight)
XCTAssertEqual(adConfiguration.skipButtonPosition, .topLeft)
}

func testDefaultSkipButtonDelay() {
Expand Down

0 comments on commit e1d35ce

Please sign in to comment.