Last active
June 30, 2020 12:28
-
-
Save TarasShu/6220936a647cf239b6223919d7c6d73a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func lines(space: Int, context: CGRect, count: Int) -> [CGRect] { | |
var line = [CGRect]() | |
for arr in 0..<count { | |
let lineOne = CGRect(origin:context.minX + CGRect(space) * CGRect(arr), | |
size: context.height) | |
let lineOtwo = CGRect(origin:context.width, | |
size: context.minY + CGRect(space) * CGRect(arr)) | |
line.append(lineOne) | |
} | |
return line | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment