-
Notifications
You must be signed in to change notification settings - Fork 0
Get started
Danil Kovalev edited this page Jul 8, 2019
·
1 revision
For get started, first of all, you have to install Cocoapods 🥥.
- Type
sudo gem install cocoapods
into your terminal. cd <Path-to-your-project>
pod init
open Podfile -a textedit
- Paste
pod 'SwiftInjectorable'
inside Podfile 📁 - Run
pod install
- Create new .swift class in your project named
RootContainer.swift
import SwiftInjectorable
- Inherit this class from
DIContainer.swift
- Override
register()
function and register your dependencies