JPSVolumeButtonHandler icon indicating copy to clipboard operation
JPSVolumeButtonHandler copied to clipboard

any swift examples?

Open gbertb opened this issue 10 years ago • 2 comments

Would love to see how this can be implemented in swift

gbertb avatar Mar 24 '15 07:03 gbertb

It's straightforward to use it in Swift. Declare a property in your VC:

var volumeButtonHandler: JPSVolumeButtonHandler?

in viewDidLoad() set the property with the 2 blocks:

let block = { () -> Void in doSomething }
volumeButtonHandler = JPSVolumeButtonHandler(upBlock: block, downBlock: block)

lucatorella avatar Oct 12 '15 12:10 lucatorella

Take a look on PhysicalButton

kronik avatar Feb 22 '17 02:02 kronik