Skip to content

Instantly share code, notes, and snippets.

@max6363
Created August 23, 2017 10:33
Show Gist options
  • Save max6363/3559a90ca5b18ea206bbcf3f0b3cfedb to your computer and use it in GitHub Desktop.
Save max6363/3559a90ca5b18ea206bbcf3f0b3cfedb to your computer and use it in GitHub Desktop.
func sizeWithIndex(_ index: Int) -> CGFloat {
switch index {
case 7:
return 0.010
case 3, 11:
return 0.007
case 1, 5, 9, 13:
return 0.005
default:
return 0.0025
}
}
override init() {
super.init()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment