(Swift for Beginners) Swift Characters and Strings In this tutorial, you will learn about characters and strings usage in Swift. You’ll also learn different operations that can be performed on strings and characters. What is a character? A character is a single symbol (letter, number, etc.). Character in swift are of Character type and is declared as: …
(Swift for Beginners) Swift Optionals In this article, you will learn about optional, its use cases and optional handling in Swift. In the previous article, we learned about different data types available in Swift and also noticed variable or constant declared of those types contains a default value. Example: let someValue = Int() print(someValue) When …
(Swift for Beginners) Swift Data Types In this tutorial, you will learn about different data types that Swift programming language supports and use it while creating a variable or a constant. A data type is the type of data (value) a variable or constant can store in it. For example, in the article Swift Variables …
(Swift for Beginners) Swift Variables, Constants and Literals In this article, you will learn about variables, constants, literals and their use cases in Swift programming. What is a Variable? In programming, variables are used to store data in memory which can be used throughout the program. Each variable must be given a unique name …
(Swift for Beginners) Swift “Hello World” Program In this article, you will dive into Swift programming by writing a “Hello, World!” program. You’ll learn the basic syntax for a working Swift program. A “Hello, World!” is a computer program that is often used to illustrate the basic syntax of a programming language with a working …