# RoomleRubens for iOS

RoomleRubens.framework is the iOS framework for the Roomle Rubens Configurator.

# Requirements

RoomleRubens.framework requires an iOS app with an deployment target of iOS 12.0 or later.

# Installation

# Swift Package Manager (Xcode 11 and above)

  • In Xcode, select File > Swift Packages > Add Package Dependency
  • Select your project > search or enter package dependency URL
  • Paste https://gitlab.com/roomle/consumer/roomlerubens.
  • Setup Package Rules: Use default values or customize based on your needs
  • Add Package to desired Products and Targets

# Usage

Import the RoomleRubens module in your desired class:

import RoomleRubens

RubensConfiguratorView is a UIView subview, which you can attach to any view in your app.

let rubensView = RubensConfiguratorView()
rubensView.attachTo(view: yourContainerView)

You can use the convenience function RubensConfiguratorView.attachTo(view:) to add the Rubens Configurator to one of your views and we set the correspondending autolayout constraints to automatically adapt to size changes of your view.

Then you are ready to load your configuration:

rubensView.loadConfiguration("usm:frame")

Please refer to the documentation for the other initializing options.

# Custom Configurator ID

You are adviced to use your Configurator ID (provied by your sales representive).

  • Download the Roomle Configuration file.
  • Replace demoConfigurator with your Configurator ID.
  • Add the updated Roomle Configraton file to your project.

# Reference Documentation

# Structs

# Classes

© Roomle 2020-2021. Last modified: Feb 15, 2021