PHFComposeBarView icon indicating copy to clipboard operation
PHFComposeBarView copied to clipboard

Not working properly on iOS 11, Xcode 9

Open MVakas opened this issue 8 years ago • 7 comments

I'm trying to implement this in an app in iOS 11, but it doesn't work properly. It isn't showing image icon etc.

MVakas avatar Sep 30 '17 07:09 MVakas

Using it in a Swift project through bridging header.

MVakas avatar Sep 30 '17 07:09 MVakas

Same problem here, you find a solution?

MattiaConfalonieri avatar Feb 01 '18 18:02 MattiaConfalonieri

Still no luck here.

MVakas avatar Feb 02 '18 02:02 MVakas

Does the example project work on iOS 11?

fphilipe avatar Feb 02 '18 06:02 fphilipe

No it doesn't.

MVakas avatar Feb 02 '18 06:02 MVakas

Just checked, the example project is working. Can you provide more information?

fphilipe avatar Feb 06 '18 07:02 fphilipe

Unfortunately, I agree that the composeBarView does indeed not work as intended. It does not appear/get rendered within the app, no error in the debugger.

When commenting out – // override var canBecomeFirstResponder: Bool { return true } the composeBarView gets rendered. However, when touched, disappears.

From the documentation it looks like a great tool. Would be awesome, if the issue could be fixed.

CODE:

import UIKit
import PHFComposeBarView
 
class ViewController: UIViewController, PHFComposeBarViewDelegate {
 
    @IBOutlet weak var composeBarView: PHFComposeBarView!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        self.composeBarView.delegate = self
    }
 
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override var canBecomeFirstResponder: Bool { return true }
    
    override var inputAccessoryView: UIView {
        composeBarView.removeFromSuperview()
        return composeBarView
    }
}

Peanutsmasher avatar Aug 10 '18 15:08 Peanutsmasher