SWC-728: share ui code across sharing view implementations