Adding view share helper function

Signed-off-by: Travis Hyyppä <travishyyppa@gmail.com>