Sunteți pe pagina 1din 1

CodeWi

thChr
isSwi
ft3Synt
axCheatSheet
Variables/Constants Classes

var myVariable:DataType class myClass:Superclass {


let myConstant:DataType }

If Statements Switch

if condition { switch value to consider {


} case value:
else if condition { case value:
} default:
else { }
}

Loops Data Types

for variable in lower...upper { String


} Int
Bool
while condition { Double
} Float
Character
repeat {
} while condition

Functions

func myFunction(arg param:DataType) -> ReturnType {


}

Lat
estver
sionatht
tp:
//codewi
thchr
is.
com/
swi
ft-
cheat
-sheet
/ v1.
0

S-ar putea să vă placă și