Last active
October 31, 2017 17:30
-
-
Save lawreyios/cf5e04d7eb54a186bfbf108af2843b83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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