Skip to content

CodeWithSwift

  • About Us
  • Blog
  • Contact Us
  • Home

Category Archives: Closures

Swift Closures
Closures

Closures

0 Comments

Closures are self-contained blocks of functionality that can be passed around and used in your code. They can capture and store references to variables and constants from their surrounding context, making them extremely powerful for functional programming. 1.Closure as a Function Argument 2.Trailing Closure If a closure is the last …

Read More
Read More
Bishal Ram
  • Swift
    • Introduction
    • Data type
    • Variables & Properties
    • Operators
    • String
    • Array
    • Sets
    • Dictionary
    • Tuples
    • Methods
    • Subscripts
    • Closures
    • CaptureList
    • Control Flow
    • Loop
    • Switch
    • Enums
    • Struct
    • Class
    • Initialisation
    • Access Control
    • Object Oriented Programming
    • Automatic Reference Counting
    • Protocol
    • Extensions
    • Protocol Oriented Programming
    • Generics
    • Associated Objects
    • Actor
    • Defer
    • Higher Order Functions
    • Lazy Properties
    • Typealias
  • iOS
    • App Life Cycle
    • ViewController Life Cycle
    • Auto Layout
    • Architecture Patterns
    • Design Patterns
    • UIKIT
    • CoreData
    • Grand Central Dispatch (GCD)
    • Global Dispatch Queues
    • OperationQueue
    • KVO/KVC
    • SOLID Principle
    • Dependency Injection & Dependency Inversion
    • MVVM
    • VIPER
    • Unit Testing (XCTest)
  • Tutorials
  • RxSwift
  • SwiftUI
  • Data Structures
  • Algorithms
  • Interview Questions
  • About Us
  • Contact Us