-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Make NSUIAccessibilityElement initializer public. #3654
Make NSUIAccessibilityElement initializer public. #3654
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3654 +/- ##
=======================================
Coverage 31.06% 31.06%
=======================================
Files 114 114
Lines 10465 10465
=======================================
Hits 3251 3251
Misses 7214 7214
Continue to review full report at Codecov.
|
@@ -33,7 +33,7 @@ open class NSUIAccessibilityElement: UIAccessibilityElement | |||
} | |||
} | |||
|
|||
override init(accessibilityContainer container: Any) | |||
override public init(accessibilityContainer container: Any) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we change it to open? @petester42 @jjatie
I’ll look into it. Anything that is nsui prefixed is usually just for internal use since it’s platform dependent switch to have to same API. I’m hesitant to merge because it should be internal only. |
After some thought. I can see the usefulness of this to be public. |
3 similar comments
After some thought. I can see the usefulness of this to be public. |
After some thought. I can see the usefulness of this to be public. |
After some thought. I can see the usefulness of this to be public. |
After some thought. I can see the usefulness of this to be public. |
Issue Link 🔗
When I create custom renderer with overriding LineChartRenderer, I can't create
NSUIAccessibilityElement
instance because its initializer is not public!Furthermore, although
NSUIAccessibilityElement
is defined as open class, its subclass can create no instance.Goals ⚽
To be able to create
NSUIAccessibilityElement
instance outside Charts.framework.Implementation Details 🚧
public
modifier toNSUIAccessibilityElement.init(accessibilityContainer:)
.Testing Details 🔍
None, there are no specific tests.
This should not effect the snapshotting at all, and has no effect on the existing codebase.