Ambience icon indicating copy to clipboard operation
Ambience copied to clipboard

public override func ambience(_ notification : Notification) method not called

Open roei46 opened this issue 6 years ago • 4 comments

Hi , i am trying implementing the above method and in contrast to the example you gave, in my project it is not called but the color do change accordingly to what i fixed in the story board, any suggestions? (using swift 4 and xcode 9.3 ) thanks in advanced !

roei46 avatar May 07 '18 08:05 roei46

Hi, I actually have the same problem. Everything should be correct. I have implemented _ = Ambience.shared in AppDelegate. I have subclassed a UIButton. In awakeFromNib() I've set ambience = true. But override func ambience(_ notification: Notification) is never called. Using Xcode 9.3.1 and Swift 4.

bpisano avatar May 29 '18 14:05 bpisano

yes... i have managed to do some walk-around but it is not the classiest solution and it has a lot of bugs. Also i didnt got any answer from this dude so i am thinking on not use that pod.

roei46 avatar May 29 '18 14:05 roei46

I'm looking for other solutions but it seems to be the easiest to use and that support IBDesignable. Maybe we should wait for iOS 12 🤷‍♂️

bpisano avatar May 29 '18 14:05 bpisano

Wanna tell me about IBDesignable?

roei46 avatar Jun 04 '18 09:06 roei46