-
-
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
Removed @objc from internal properties #3038
Conversation
Since the framework is entirely Swift, internal properties do not need to be marked as @objc
Codecov Report
@@ Coverage Diff @@
## master #3038 +/- ##
=======================================
Coverage 19.77% 19.77%
=======================================
Files 113 113
Lines 13663 13663
=======================================
Hits 2702 2702
Misses 10961 10961
Continue to review full report at Codecov.
|
@liuxuan30 This is a quick and easy one. |
if it contains more than 3 files it's not a quick one lol |
I remember we just added those tags since swift 4.
Does this mean no one need access to these internals outside Charts framework anymore? If true, we can remove then. For _xxx variables it's safe to remove @objc as they have their public getters. however for methods, it seems weird ObjC can actually call internal methods, so removing the tag or just mark it public seems better choice. In history we had a commit moving many interval methods and classes into open. and we can do it if necessary. |
the internal access method means that the properties/methods can only be used within the Charts framework. Any consumer of the framework cannot see them. Since any consumer of the framework cannot see them, and the framework is written in Swift internally, all internal and private functions and properties do not need to be marked as |
yes, but the trick is adding |
for math refining I have to delay one day. get back to work |
Since the framework is entirely Swift, internal properties do not need to be marked as @objc