Swift version of ClipMenu