johnno1962/Remote

Is this useful to Swift?

codwam opened this issue · 6 comments

Is this useful to Swift?

No reason it wouldn’t work with a swift based app but it is untested

It builds failed when created a new Swift example and Patch it.

The way it works, you'll need to add dummy(empty) main.m to your pproject

Yes, I add it.

typedef NS_ENUM(int, RMTouchPhase) {
RMTouchBeganDouble = -1,
RMTouchBegan = 0,
RMTouchMoved,
RMTouchStationary,
RMTouchEnded,
RMTouchCancelled,
RMTouchUseScale,
};
It has error.
RemoteCapture.h:27:42: Function definition declared 'typedef'

I’ve pushed a change to fix this. Thanks for the report!

Thanks