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

Loops in swift

In coding, when it comes to repeating operations, you can copy and paste your code 20 times or so or you can easily execute a loop. Verify this simple...

Continue reading

How to create funtion in Swift

In this blog, I’ll explain you how to create simple functions in Swift along with a little more complex functions that take parameters and can return a value. An easy method to obtain some practice would be to open and follow...

Continue reading