Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Swift snippets by son son
Config 2 Determines whether the Devloper or Distribution from Provisioning
Swift
0
1
1216
CoreData 1 Store JSON data to CoreData
Swift
0
1
2444
SpriteKit 0 Setting the GameViewController
Swift
0
1
1543
SpriteKit 1 Get the size of the screen
Swift
0
1
1255
SpriteKit 2 To draw a shape
Swift
0
1
1234
SpriteKit 3 Get the location of the node
Swift
0
1
1238
SpriteKit 4 Setting the drawing order of Node
Swift
0
2
1329
SpriteKit 5 Changing the size of the Node
Swift
0
2
1283
SpriteKit 6 To add a child to the Node
Swift
0
2
1322
SpriteKit 7 To remove all of the parent node to the child node
Swift
0
2
1512
SpriteKit 8 To remove a node from the parent node
Swift
0
2
1515
SpriteKit 9 Give a name to the Node
Swift
0
2
1397
SpriteKit 10 Get all of the specific name of a node in the parent node
Swift
0
1
1796
SpriteKit 11 To hide the node
Swift
0
1
1554
SpriteKit 12 Keep suited a node in a particular direction
Swift
0
2
1344
SpriteKit 13 The Node keep suited to specific coordinates
Swift
0
5
1407
SpriteKit 14 Change the background color of the Scene
Swift
0
1
1685
SpriteKit 15 To get a touch event
Swift
0
1
1334
SpriteKit 16 To move the node to the touch coordinates
Swift
0
4
1471
SpriteKit 17 To detect the collision of rigid bodies
Swift
0
1
1341