SensorTest 0.1.1

SensorTest 0.1.1

Maintained by Ferran Pujol.

Depends on:
RxSwift~> 5.0.0
RxCocoa~> 5.0.0
RxTest~> 5.0.0

  • By
  • Intelligent Apps GmbH.



Swift 5 Cocoapods compatible Swift Package Manager compatible

Nowadays, mobile applications become increasingly powerful and complex, rich of features that try to improve the user's experience. But power is nothing without control: the more powerful (and complex) the app is, the highest the chance it can end up in an inconsistent state.

The good news is our Sensor Architecture: an elegant and a good way to organise your code when working with complex applications. With the ability to define all the possible states, of each feature of a mobile application, the chances to end up in an inconsistent state are most unlikely. Thanks to the concept of the State Machine and its deterministic behaviour, we can be sure that all the transitions from a state to another state are regulated by a finite set of events that can happen.

The Sensor framework comes with batteries included so you can start writing safe apps straight away.

The SensorTest framework includes some goodies to help you write unit tests in a breeze.

Learn more

Read the docs

Video with a presentation of this architecture

Presentation used on the video



To use the Sensor framework, add the following line to the target of your app on your Podfile:

pod 'Sensor', '0.1.1'

In your app, add the following import:

import Sensor

To use the SensorTest framework, add the following line to the test target on your Podfile:

pod 'SensorTest', '0.1.1'

In your tests, add the following import:

import SensorTest

Swift Package Manager

Add the following line to your package dependencies:

.package(url: "", from: "0.1.1"),

Add Sensor to your main target dependencies. Add SensorTest to your test target dependencies.

The minimum macOS version is 10.13.

Example Package.swift file:

// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Package",
    platforms: [
    dependencies: [
        .package(url: "", from: "0.1.1"),
    targets: [
            name: "Target",
            dependencies: ["Sensor"]),
            name: "TestTarget",
            dependencies: ["Target", "SensorTest"]),


  • Stefan Bieschewski
  • David Cortés
  • Fabio Cuomo
  • Mounir Dellagi
  • Lluís Gómez
  • Carlos Nuñez
  • Ferran Pujol
  • Adrian Zdanowicz