Custom Swift implementation of UIScrollView-like view based upon Ole Begemann's example