Package unusable due to access control
avi-screenovate opened this issue · comments
Describe the bug
I added this package to my Xcode project, and I am unable to use it because the View extension methods are not public.
To Reproduce
Steps to reproduce the behavior:
- Add package to Xcode project
- Import SwiftUITooltip into ContentView.swift
- Attempt to invoke tooltip(...) method.
- See compiler error.
Expected behavior
The methods should be accessible.
Will this be fixed?
Hey, I didn't have any time at all for this, but I'll try to fix it today ;)
Hey @LilaQ @avi-screenovate ! It should work now 🥸 At least it works for me 😇 Sorry for fixing this forever 😳
- I've just started using this package (v1.0.2), and I still see this error. Would you be able to fix it?
- Also is there an option to hide/show the tooltip? If not, would you be able to add that feature?
'DefaultTooltipConfig' initializer is inaccessible due to 'internal' protection level
@tobyloki Could you provide versions of xcode/macos you use?
I use XCode 12.5.1 and the Mac Mini 2020 with the M1 chip and the latest Big Sur.
Ah, my bad, somehow I missed making the initializer itself public.
Try again with v1.0.3, should be working now :)
@tobyloki Tell me if there are still any issues ;)
Weird that I didn't get this error, but I'll remove those in a bit. Thanks for helping me out solving this issue!