TOActionSheet icon indicating copy to clipboard operation
TOActionSheet copied to clipboard

Swift Integration

Open annjawn opened this issue 7 years ago • 1 comments

Looks very promising... Any way you could provide Swift code sample for it? Thanks

annjawn avatar Dec 17 '17 05:12 annjawn

Thanks a lot @annjawn!

That's a good idea! It hasn't got any provisions for being bridged to a Swift project yet. The method names and property nullability could probably be improved.

For now, if you need an example, just follow the example code here: https://github.com/TimOliver/TOActionSheet/blob/master/TOActionSheetExample/ViewController.m#L20

Once you've imported the library into a Swift project, you should be able to use code auto-complete to see how the generated Swift interface looks like.

Good luck!

TimOliver avatar Dec 17 '17 11:12 TimOliver