Want to create a floating menu in Swift for the iOS app I'm developing. Something along the lines of the small menu of red circles, as shown in the following image.

My initial thoughts were to extend the UIViewController class and add the corresponding drawing / logic there, however the application consists of several other controllers, more specifically the UITableViewController, which itself extends the UIViewController. Is there perhaps a good place to expand? Or is there a more eloquent way of drawing menus on certain views without mass duplication of code associated with the menu?
The menu itself will be displayed on most screens, so I need to selectively enable it. It will also be somewhat contextual based on the view / screen in which the user is currently logged on.
Any amazing ideas?
source share