Support for printable in beans.
Updated swift implementation.