String concatenation involves combining 2 or more strings into a single string. This practical and straight-to-the-point will walk you through 5 different ways to concatenate strings in Swift (including mixing strings with variables).......
This concise, practical article walks you through some use cases of the underscore character _ in Swift. Omitting Variable Names in Tuples Suppose you have a tuple that contains multiple values, but you only care about and want to......
This concise, example-based article shows you how to define functions in Swift. Defining a Basic Function A basic function definition consists of the func keyword, a function name, a set of parentheses, and a set of curly braces......
This article is about the nil value and the Optional type in Swift. Nil and Optional In Swift, optional and nil are related concepts, but they are not the same thing. Optional is a type that represents a value that may or may not......
When you’re writing code in Swift, you’ll come across 2 keywords that are used to declare variables: var and let. These keywords may seem similar at first glance, but they have a few key differences that can affect your code......
This short and straight-to-the-point article shows you a couple of different ways to comment out a single line or a block of code in Swift. Line Comment A line comment begins with two forward slashes // and continues until the end......