Skip to content

Commit

Permalink
[WatermarkViewController] Add 8 pt margin to watermarks
Browse files Browse the repository at this point in the history
  • Loading branch information
isair committed Dec 10, 2015
1 parent 08628fd commit 309aaf0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions MobilePlayer/WatermarkViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ class WatermarkViewController: MobilePlayerOverlayViewController {
watermarkImageView.frame.origin.y = (size.height - watermarkSize.height) / 2
case .Top:
watermarkImageView.frame.origin.x = (size.width - watermarkSize.width) / 2
watermarkImageView.frame.origin.y = 0
watermarkImageView.frame.origin.y = 8
case .TopRight:
watermarkImageView.frame.origin.x = size.width - watermarkSize.width
watermarkImageView.frame.origin.y = 0
watermarkImageView.frame.origin.x = size.width - watermarkSize.width - 8
watermarkImageView.frame.origin.y = 8
case .Right:
watermarkImageView.frame.origin.x = size.width - watermarkSize.width
watermarkImageView.frame.origin.x = size.width - watermarkSize.width - 8
watermarkImageView.frame.origin.y = (size.height - watermarkSize.height) / 2
case .BottomRight:
watermarkImageView.frame.origin.x = size.width - watermarkSize.width
watermarkImageView.frame.origin.y = size.height - watermarkSize.height
watermarkImageView.frame.origin.x = size.width - watermarkSize.width - 8
watermarkImageView.frame.origin.y = size.height - watermarkSize.height - 8
case .Bottom:
watermarkImageView.frame.origin.x = (size.width - watermarkSize.width) / 2
watermarkImageView.frame.origin.y = size.height - watermarkSize.height
watermarkImageView.frame.origin.y = size.height - watermarkSize.height - 8
case .BottomLeft:
watermarkImageView.frame.origin.x = 0
watermarkImageView.frame.origin.y = size.height - watermarkSize.height
watermarkImageView.frame.origin.x = 8
watermarkImageView.frame.origin.y = size.height - watermarkSize.height - 8
case .Left:
watermarkImageView.frame.origin.x = 0
watermarkImageView.frame.origin.x = 8
watermarkImageView.frame.origin.y = (size.height - watermarkSize.height) / 2
case .TopLeft:
watermarkImageView.frame.origin.x = 0
watermarkImageView.frame.origin.y = 0
watermarkImageView.frame.origin.x = 8
watermarkImageView.frame.origin.y = 8
}
}
}

0 comments on commit 309aaf0

Please sign in to comment.