Swift Tutorials

swift enumerations 0

Swift Enumerations

Enumerations are a custom data type. It makes a group of related values as a single data type. It provides type safety for various cases or states. It is also known as enums. In...

swift characters 0

Swift Characters and Its Types

Characters are the simplest and single unit of text. Swift provides features and methods for handling string and character data types. In this article, we’ll learn more about characters, their properties and the concepts...

swift properties 0

Swift Properties and Its Types

We use properties in Swift to encapsulate and manage values that are associated with enumerations, structures and classes. We can store and compute properties in Swift. In this article, we’ll learn about different kinds...

swift methods 0

Swift Methods with Examples

Methods play an important role in object-oriented programming. Swift Methods are functions defined with a particular type like class, structures or enumerations. It defines their behaviour. They encapsulate operations that objects can perform. The...

swift inheritance 0

What is Swift Inheritance

Inheritance is an important concept associated with Object-Oriented Programming. We can create child classes which inherit entities from a parent class. In this article, we’ll learn about inheritance in Swift and what base classes...

swift subscripts 0

What are Subscripts in Swift

Swift provides a feature called Subscripts to access elements of collection data types. This helps us to access and modify values from complex data structures in a convenient way. We use indexes to set...

swift closures 0

Closures in Swift

Closures are blocks of code that execute together but without a named function. These are similar to lambdas in other programming languages. We define it without using the func keyword. It can accept parameters...

swift functions 0

Swift Functions with Examples

Functions are reusable blocks of code in a program. It performs a specific task like addition or printing or even some other complex task. It might take parameters, and it might also return values....