Skip to content

Instantly share code, notes, and snippets.

@dmauro
Created July 30, 2014 02:19
Show Gist options
  • Save dmauro/43187408fa83b87c14d4 to your computer and use it in GitHub Desktop.
Save dmauro/43187408fa83b87c14d4 to your computer and use it in GitHub Desktop.
import UIKit
extension CGSize {
init(width: Double, height: Double) {
self.width = CGFloat(width)
self.height = CGFloat(height)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment