OCMockitoSwift

Overview OCMockitoSwift is OCMockito adapter for Swift, that allows to create and operate on mocks which are subclasses for NSObject. Technical details The adapter comes with two files: OCMockitoSwiftAdapter.{h,m} – Objective-C code to provide Swift friendly interface that allows mocking, veryfing and stubbing OCMockito.swift – set of global functions for Swift, e.g. mock() or verify() **Platform:** iOS Framework **Role:** Co-Author, Developer

Mar 16, 2018 · Aleksander Zubala

Swifjection

Overview Swifjection – lightweight and simplistic dependency injection framework written in Swift for Swift . The main idea behind this project is to achieve DI for Swift objects that does not inherit from Objective-C classes. Technical details We built Swifjection for our use in the first place. These are the key points what was our motivation: No need to inherit from NSObject in order to inject dependencies To inject pure Swift types you just need to conform to simple Injectable protocol No action required to inject NSObject sublcasses, or classes conforming to Injectable protocol Clear and simple binding system inspired by Objective-C framework Objection Lightweight – we wanted to avoid unnecessary clutter and made the APIs as simple as possible **Platform:** iOS Framework **Role:** Co-Author, Developer

Mar 1, 2017 · Aleksander Zubala