Material Motion Exploring solutions that will empower creators with the tools needed to describe and implement rich, interactive motion on any platform. Edit this page · History
$._map toString visualize
Status Interface level Implementation level Library
Proposal as of April 14, 2017 L2: Interaction creator L3: Stream creator material-motion
UpdatesCurrent StatusInitiation dateCompletion date
First proposed. Proposal April 14, 2017
platformsrctests
iOS (Swift) View
toString
upstream (T)
(String) downstream

toString specification

This is the engineering specification for the MotionObservable operator: toString.

Overview

toString emits a string representation of the upstream value.

Example usage:

stream.toString()

upstream  |  downstream
20        |  "20"
40        |  "40"
80        |  "80"

MVP

Expose a toString operator API

Use _map to implement the operator.

class MotionObservable {
  public func toString() -> MotionObservable<String>