The idea behind SwifterSwift is to have the widest collection of extensions grouped in one place, and at the same time give users the ability to copy any extension and use it as an independent unit in their code.
We want to double check one final time that all extensions follow the above pattern and the scope of each unit in inclosed within it.
One suggested approach to do this, is for each file in the framework:
Type 'some_type' has no member 'some_extension'@omaralbeik by each unit, do you mean that each extension has to be self-sufficient?
By unit I mean any variable or function inside an extension
example:
extension type_1 {
var a {
return ...
}
func b() {
...
return ...
}
}
extension type_2 {
var c {
return ...
}
func d() {
...
return ...
}
}
here a, b, c and d are units,
c for example should not depend on d, a any other unit