             assertionFailure("Could not create a path to the bundle")
         }
         
-
+        
         
         titleLabel = UILabel(frame: CGRect(x: (screenWidth - 60) / 2.0 - 80, y: 0, width: 160, height: 40))
-        titleLabel?.textAlignment = .Center
-        titleLabel?.backgroundColor = UIColor.clearColor()
+        titleLabel?.textAlignment = .center
+        titleLabel?.backgroundColor = UIColor.clear
         
         contentLabel = UILabel(frame: CGRect(x: 20, y: 70, width: screenWidth - 60 - 40, height: 80))
-        contentLabel?.textAlignment = .Center
+        contentLabel?.textAlignment = .center
         contentLabel?.numberOfLines = 0
-        contentLabel?.backgroundColor = UIColor.clearColor()
+        contentLabel?.backgroundColor = UIColor.clear
         
         closeButton = UIButton(frame: CGRect(x: (screenWidth - 60) / 2.0 - 25, y: self.screenHeight / 2.0 - 80, width: 50, height: 50))
-        closeButton?.backgroundColor = UIColor.clearColor()
-        closeButton?.setBackgroundImage(buttonImage, forState: UIControlState.Normal)
-        closeButton?.setTitle("", forState: UIControlState.Normal)
-        closeButton?.addTarget(self, action: #selector(PokeModal.dismissMenu), forControlEvents: UIControlEvents.TouchUpInside)
+        closeButton?.backgroundColor = UIColor.clear
+        closeButton?.setBackgroundImage(buttonImage, for: UIControlState())
+        closeButton?.setTitle("", for: UIControlState())
+        closeButton?.addTarget(self, action: #selector(PokeModal.dismissMenu), for: UIControlEvents.touchUpInside)
         
         
         let downGesture = UIPanGestureRecognizer(target: self, action: #selector(PokeModal.swipedDown))
         containerView?.addGestureRecognizer(downGesture)
     }
     
-    public func showMenu() -> Void {
+    open func showMenu() -> Void {
         if isShown == false {
             
             if closeButton != nil {


private extension PokeModal {
    
    @objc func swipedDown(sender: UIPanGestureRecognizer) -> Void {
        
        let translation = sender.translationInView(self.view)
        
        if sender.state == UIGestureRecognizerState.Began {
            self.initialPoint = self.containerView?.center
        }
        


extension UILabel {
    
    func addCharactersSpacing(_ spacing: CGFloat, text: String) {
        let attributedString = NSMutableAttributedString(string: text)
        attributedString.addAttribute(NSKernAttributeName, value: spacing, range: NSMakeRange(0, text.characters.count))
        self.attributedText = attributedString
