How to Concatenate Strings in Swift (5 Approaches)
Updated: Feb 23, 2023
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).......
The Underscore Character (_) in Swift
Updated: Feb 22, 2023
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......
Defining Functions in Swift
Updated: Feb 22, 2023
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......
Optional, Nil, and Nil Check in Swift
Updated: Feb 22, 2023
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......
Swift Variables: Let, Var, and the Difference between Them
Updated: Feb 22, 2023
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......
Different Ways to Make Comments in Swift
Updated: Feb 22, 2023
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......
← PreviousPage 6 of 6