Skip to content

Instantly share code, notes, and snippets.

@peterentwistle
Created May 31, 2015 13:13
Show Gist options
  • Save peterentwistle/fcda0695db2dfd0c1087 to your computer and use it in GitHub Desktop.
Save peterentwistle/fcda0695db2dfd0c1087 to your computer and use it in GitHub Desktop.
In this second video I show you how variables work in Swift.
println("Hello World!")
var name: String
name = "Peter"
var x = 20
var y: Float = 5.2
var isEnabled: Bool = false
Float(x) + y
x = 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment