Dictionaries in Swift

You may know that in Swift arrays to read out a value, you can call it’s index value similar to: var someArray = ["Farhan", "Syed", "March", "19", "1996"] someArray[0] Instead of remembering the index value that is...

Continue reading

Conditional Statements in Swift

When you desire your code to perform only if a certain condition is true then you can use an if statement. You can execute a if like so: var brand = "Apple" if brand == "Apple" { print("Brand is Apple") } An...

Continue reading

String interpolation in swift

String interpolation is just several imagine term for combining variables and constants within a string. For example a string like so: var brand = "Apple" Now we might simply print this out by executing: print("My favorite brand...

Continue reading

Switch Cases in Swift

You’ve mainly likely heard of an if statement, consider of switch cases to be the more advanced form of a if. To begin a switch statement you inform Swift what variable you want to run things by, and then give the list...

Continue reading