Swift Study Cards

Enhance Your Understanding with Swift Programming Concept Cards for quick learning



Swift

A powerful and intuitive programming language developed by Apple for iOS, macOS, watchOS, and tvOS app development.

Variables

Containers for storing values that can be changed throughout the program execution.

Constants

Containers for storing values that cannot be changed once assigned.

Data Types

The classification of values that determine the operations that can be performed on them.

Integers

Data type used to represent whole numbers without fractional components.

Floating-Point Numbers

Data type used to represent numbers with fractional components.

Strings

Data type used to represent a sequence of characters.

Boolean

Data type used to represent either true or false values.

Arithmetic Operators

Operators used to perform basic mathematical operations like addition, subtraction, multiplication, and division.

Comparison Operators

Operators used to compare values and determine their relationship, such as equality, inequality, greater than, less than, etc.

Logical Operators

Operators used to combine multiple conditions and determine the overall truth value.

If Statement

Control flow statement used to execute a block of code if a certain condition is true.

Switch Statement

Control flow statement used to execute different blocks of code based on different possible values of a variable or expression.

For Loop

Control flow statement used to repeatedly execute a block of code for a specific number of times.

While Loop

Control flow statement used to repeatedly execute a block of code as long as a certain condition is true.

Function

A reusable block of code that performs a specific task and can be called multiple times throughout the program.

Class

A blueprint for creating objects that define their properties and behaviors.

Object

An instance of a class that encapsulates data and methods.

Inheritance

A mechanism that allows a class to inherit properties and behaviors from another class.

Error Handling

The process of catching and handling errors that occur during program execution to prevent crashes and unexpected behavior.

Concurrency

The ability of a program to execute multiple tasks simultaneously, improving performance and responsiveness.

Optional

A type that represents either a wrapped value or nil, indicating the absence of a value.

Guard Statement

Control flow statement used to exit a function, loop, or condition if a certain condition is not met.

Type Casting

The process of converting an instance of a class to its superclass or subclass type.

Struct

A value type that can have properties and methods, similar to a class.

Enumeration

A type that defines a group of related values and enables you to work with those values in a type-safe way.

Protocol

A blueprint of methods, properties, and other requirements that can be adopted by a class, struct, or enumeration.

Extension

A mechanism that allows you to add new functionality to an existing class, structure, enumeration, or protocol type.

Type Alias

A custom name given to an existing data type to make the code more readable and expressive.

Tuple

A group of values that can be of different types, used to pass multiple values as a single compound value.

Array

An ordered collection of values of the same type, stored in a contiguous block of memory.

Dictionary

A collection of key-value pairs, where each key is unique and used to retrieve the corresponding value.

Set

An unordered collection of unique values, used to perform mathematical set operations.

Closure

A self-contained block of code that can be passed around and executed at a later time.

Enum Case

A unique value within an enumeration that represents a specific state or value.

Access Control

A feature that restricts the access and visibility of code entities like classes, properties, and methods.

Memory Management

The process of allocating and deallocating memory for objects to optimize performance and prevent memory leaks.

Debugging

The process of identifying and fixing errors or bugs in a program to ensure it behaves as expected.

Documentation

The process of writing comments and explanations in code to make it easier for others to understand and use.

Error Types

Different types of errors that can occur in a program, such as syntax errors, logic errors, and runtime errors.

Code Optimization

The process of improving the efficiency and performance of code without changing its functionality.

Code Refactoring

The process of restructuring existing code to improve readability, maintainability, and extensibility.

Code Versioning

The practice of tracking and managing changes to code over time, enabling collaboration and rollback to previous versions.

Code Review

The process of examining code to identify bugs, improve quality, and ensure adherence to coding standards.

Code Documentation

The process of writing comments and explanations in code to make it easier for others to understand and maintain.

Code Testing

The process of verifying that code functions as expected by running tests and checking for errors or unexpected behavior.

Code Deployment

The process of releasing code to a production environment, making it available for users to use.

Code Maintenance

The ongoing process of updating and improving code to fix bugs, add new features, and optimize performance.