Added view rendering to use swig.