title: Creating a floating menu in an iOS application
body: <p>Looking to create a floating menu in Swift for an iOS application I am developing. Something along the lines of the little red circle menu as shown in the following image. </p>
  
  <p><a href="https://i.stack.imgur.com/Bd8Te.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bd8Te.png" alt="enter image description here"></a></p>
  
  <p>My initial thoughts were to extend the UIViewController class and add the respective drawing/logic there, however, the application is comprised of a few other controllers, more specifically the UITableViewController which in itself extends UIViewController. Is there perhaps a good place for an extension perhaps? Or is there a more eloquent way of drawing the menu on specific views without the mass duplication of menu related code?</p>
  
  <p>The menu itself will be shown on most screens, so I need to selectively enable it. It'll also be somewhat contextual based on the view/screen the user is currently on.</p>
  
  <p>Any awesome ideas?</p>