SwiftyButton icon indicating copy to clipboard operation
SwiftyButton copied to clipboard

The image does not move with the button when I press a PressableButton

Open Sweeper777 opened this issue 8 years ago • 3 comments

To reproduce this, put a PressableButton on the storyboard, set its image to some image and text to "". Now try to press the button. The button will look like as if it's been pressed, but the image stays at the same position. This looks very unnatural.

Sweeper777 avatar Oct 01 '17 07:10 Sweeper777

Oh good point, we haven't implemented image inset changes in the pressed state. Will tackle soon.

ldiqual avatar Jan 17 '18 23:01 ldiqual

@Sweeper777 Fixed in https://github.com/TakeScoop/SwiftyButton/commit/f9ec59a5456e2a2ad6b8e26b86c7adb6293c05d0 which I merged in master. Would you mind giving it a shot with Cocoapods?

pod 'SwiftyButton', :git => '[email protected]:TakeScoop/SwiftyButton.git', :branch => 'master'

ldiqual avatar Jan 18 '18 19:01 ldiqual

I can't seem to install the pod. This is the error:

2018-01-19 19 20 35

Also, is this for Swift 3? My old project is still using Swift 3.

Sweeper777 avatar Jan 19 '18 19:01 Sweeper777