Contents

Swift

  • Swift Basic Syntax
  • Identifiers
  • Keywords
  • Semicolons (;)
  • Whitespaces
  • Literals
  • Comments
  • Print Statement
  • Import Class
  • Variables and Constants
  • Integer and Floating-Point Numbers
  • Strings in Swift
  • String Functions and
  • Operators in Swift
  • Data Type Conversions in Swift
  • Convert String to Int Swift
  • Decision-Making Statements in Swift
  • Simple if Statement
  • If-else Statement
  • If-else-if Statement
  • Nested if-else Statement
  • Switch Statement
  • Loops
  • Break Statement
  • Calling Functions in Swift
  • Swift Function Parameters and Return Values
  • Swift In Out Parameters
  • Nested Function
  • Swift Function Overloading
  • Escaping and Non-Escaping Closures in Swift
  • Sets
  • How to remove first element from the Set in Swift?
  • Swift Set and the removeAll() Function
  • How to check if the set contains a given element in Swift?
  • How to count the elements of a Set in Swift?
  • Sorting a Set in Swift
  • How to check if a set is empty in Swift?
  • How to shuffle the elements of a set in Swift?
  • Difference Between Sets and Arrays
  • Swift – Arrays
  • Arrays Properties
  • How to Remove the First element from an Array in Swift?
  • How to count the elements of an Array in Swift?
  • How to Reverse an Array in Swift?
  • Swift Array joined() function
  • How to check if the array contains a given element in Swift?
  • Sorting an Array in Swift
  • How to Swap Array items in Swift?
  • How to check if an array is empty in Swift?
  • Creating a Dictionary
  • Creating an Empty Dictionary
  • Changing the Value in a Dictionary
  • Accessing Elements of a Dictionary
  • Iterating Over a Dictionary
  • Creating a Dictionary from Two Arrays
  • Removing Items from a Dictionary
  • Converting a Dictionary to an Array
  • Dictionary Properties
  • Creating a Tuple in Swift
  • Swift Structures
  • Swift Properties and its Different
  • Types
  • Swift Methods
  • Difference Between Function and Method
  • Swift – Deinitialization and How It Works
  • Typecasting in Swift
  • Repeating Timers in Swift
  • Repeating Timers in Swift
  • Non Repeating Timers in Swift
  • Swift Errors
  • Difference between
  • Try, Try?, and Try! in
  • Swift
  • Swift Typealias
  • Difference between Swift Structures and C Structure
  • Theoretical Questions
  • Advanced Coding Challenges
  • Advanced Questions
  • Scenario-Based Questions
  • Swift Project Ideas