Swift version of dockTweak