Skip to content

Instantly share code, notes, and snippets.

@lawreyios
Last active October 31, 2017 17:30
Show Gist options
  • Save lawreyios/cf5e04d7eb54a186bfbf108af2843b83 to your computer and use it in GitHub Desktop.
Save lawreyios/cf5e04d7eb54a186bfbf108af2843b83 to your computer and use it in GitHub Desktop.
import UIKit
enum StartingPoint {
case Left
case Right
}
typealias Mask = UIImage
typealias MaskView = UIImageView
extension CGRect {
static func getMaskRectLeft(y: CGFloat) -> CGRect {
return CGRect(x: -110, y: y, width: 100, height: 65)
}
static func getMaskRectRight(y: CGFloat) -> CGRect {
return CGRect(x: 2030, y: y, width: 100, height: 65)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment