C4iOS
C4iOS copied to clipboard
C4 is an open-source creative coding framework that harnesses the power of native iOS programming with a simplified API that gets you working with media right away. Build artworks, design interfaces a...
Here is a sample: ``` let newline: unichar = "\n" if unichars[i] == newline { origin.x = 0.0 origin.y += CGFloat(font.lineHeight) } ``` Including: ``` extension unichar : UnicodeScalarLiteralConvertible {...
The following works: ``` override func setup() { let r = Rectangle(frame: Rect(0, 0, 200, 200)) r.lineWidth = 15.0 let c = Circle(center: Point(), radius: 25) c.lineWidth = 5.0 r.add(c)...
I have a rotation gesture added to my canvas like so: canvas.addRotationGestureRecognizer { (rotation, velocity, state) -> () in } I want to change the rotation of a view located...
Simplified version of NSBundle.mainBundle().urlForResource("filename", withExtension:".txt") Something like: `let url = URL("filename.txt")` `let path = Path("filename.txt")`
The `TextShape` class currently doesn't have the same common `copy` method that other objects do.
If we have no plans to leverage the runtime flexibility that being an Obj-C subclass provides, it might make sense to make C4View (and any other classes) pure Swift classes...