Skip to content

CodeWithSwift

  • About Us
  • Blog
  • Contact Us
  • Home

Category Archives: Dependency Injection & Dependency Inversion

iOS Dependency Injection & Dependency Inversion
Dependency Injection & Dependency Inversion

Dependency Injection in iOS

0 Comments

Dependency Injection (DI) in Swift is a design pattern that allows to inject dependencies into a class instead of letting the class create them itself. This improves testability, modularity and flexibility. There are three main types of Dependency Injection in Swift: 1. Constructor Injection (Initialiser Injection) 2. Property Injection 3. …

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