TCA Accessory libraries #989
Replies: 3 comments 2 replies
-
My personal take about this:
These are only suggestions of my own, and I'd be happy to change/adapt them according to others' views on the subject. |
Beta Was this translation helpful? Give feedback.
-
Hey @tgrapperon! Thanks for starting the discussion. So far we have 2 "official" TCA accessory libraries, Composable Core Location and Composable Core Motion.
We've been preferring to omit the
We've gone with
We've avoided exporting it so far. Exporting can be a bit of a flakey thing in our experience. While we do it a little bit in the core library, we're not sure it's generally a good thing to rely on given that it's still underscored. |
Beta Was this translation helpful? Give feedback.
-
It would be good if there was a GitHub tag/topic to easily find them ^^ I find it very useful with Publish https://github.com/topics/publish-plugin?l=swift |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There are a few accessory libraries out there that are expanding the core TCA experience with additional features.
Without making any supposition about something centralizing them, I think there's a need for common guidelines to follow in order to improve the end-user experience. The objective is not to have something strict that should be enforced at all costs, but rather a common standard one can refer to when needed.
For example:
swift-composable-xxx
,tca-xxx
, …?ComposableXXX
,ComposableArchitecture_XXX
, …?ComposableArchitecture
, or avoid doing it? (i.e.@_exported import ComposableArchitecture
)Even without any centralization, a common set of rules like these may already benefit end-users of such libraries: consistent naming, consistent behavior, discoverability, etc.
What do you think about it? Do you see other requirements?
Beta Was this translation helpful? Give feedback.
All reactions