Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objectvie-c #12

Closed
rem0t opened this issue Jan 15, 2018 · 6 comments · Fixed by #14
Closed

Objectvie-c #12

rem0t opened this issue Jan 15, 2018 · 6 comments · Fixed by #14

Comments

@rem0t
Copy link

rem0t commented Jan 15, 2018

Hello, how can i use this framework in my objective-c project ? if possible

@KaneCheshire
Copy link
Owner

Good question, not one that I've thought about.

If you add ShowTime as a pod, you should be able to just @import ShowTime and then set ShowTime.enabled.

Have you tried anything yourself yet? If so, what have you tried and have you had any errors?

@rem0t
Copy link
Author

rem0t commented Jan 15, 2018

I added the showTime.swift file and make Bridging-Header.h, then I do #import "myPojectName-Swift.h", bud objectvie-c not see public struct ShowTime
2018-01-15 18 18 33

@KaneCheshire
Copy link
Owner

Ahh yes it's likely because it's a struct. I could look at moving it over to a final class instead, considering all the properties and functions are static.

@rem0t
Copy link
Author

rem0t commented Jan 15, 2018

It would be nice :) if you have time for this

@KaneCheshire
Copy link
Owner

Hey @rem0t, I've just created a PR for this, once the builds have passed I'll merge it in and release 2.1.0 which will have support for Obj-C. Until then if you want to check it out you can point your pod file to feature/objc-support and run pod update and it should work great :)

@rem0t
Copy link
Author

rem0t commented Jan 26, 2018

HI, ty it's great )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants