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
DGElasticPullToRefreshLoadingViewCircle not public #2
Comments
Hm. Do you have any thoughts why LoadingViewCircle is not accessible when using as a Framework? Ok, I will re-think naming. |
That's how it is in Swift. Internal classes are internal to a framework. Just make the classes and it's base class public. Also all initializers and overriden methods. |
The extension has to be public too. |
Basically make all my classes, extension and etc: Right? |
Yes |
Was about to report the same issue with Cocoapods. Thanks in advance for fixing this! |
Will make all public tonight and will push it |
Any update on this? I would love to use it in a project. |
Have a look at my latest commit on cocoapods branch: https://github.com/gontovnik/DGElasticPullToRefresh/tree/cocoapods Is it enough for CocoaPods? |
You need to make the default initializer public as well: DGElasticPullToRefreshLoadingViewCircle: |
What about extension methods such as: |
Might as well make it public. No harm in this case.
|
I guess now should be fine? :) If yes then I gonna merge it back to master and update cocoapods |
Seems to work. Looks like the extension functions don't need to be public as long as the extension itself is public. But no harm in making them public. Have to say that this is the most coolest looking pull to refresh control I have seen so far. Keep up the good work! |
Looks like all files were not recompiled in my computer and there are still some problems. In the DGElasticPullToRefreshLoadingViewCircle class the init needs override keyword and setPullProgress, startAnimating and stopLoading need to be public as the overriden functions are public. init(frame: .zero) does not compile. I think init() without frame should work as the base class already calls UIView's init with a zero frame. |
Released version 1.0.2, check it out, now all should be public. Please let me know if something does not work for you. |
DGElasticPullToRefreshLoadingViewCircle is not public and is not accessible when using DGE as a framework (CocoaPods).
Also, please consider renaming the classes to have shorter names. Swift has namespaces, so no need to obj-c style long names and prefixes.
The text was updated successfully, but these errors were encountered: