John Sundell on Twitter: "Creating extensions with static factory methods can be a great alternative to subclassing in Swift, especially for things like setting up UIViews, CALayers or other kinds of styling
![ios - Accessing fileprivate and private variables in extension and another class using swift 4 - Stack Overflow ios - Accessing fileprivate and private variables in extension and another class using swift 4 - Stack Overflow](https://i.stack.imgur.com/imr3Y.png)
ios - Accessing fileprivate and private variables in extension and another class using swift 4 - Stack Overflow
![Symbol Graph Adaptions for Documenting Extensions to External Types in DocC - Swift-DocC - Swift Forums Symbol Graph Adaptions for Documenting Extensions to External Types in DocC - Swift-DocC - Swift Forums](https://global.discourse-cdn.com/swift/original/3X/1/a/1adae76f23054a03e209b6577e09f946cb924f80.png)
Symbol Graph Adaptions for Documenting Extensions to External Types in DocC - Swift-DocC - Swift Forums
![ios - Accessing fileprivate and private variables in extension and another class using swift 4 - Stack Overflow ios - Accessing fileprivate and private variables in extension and another class using swift 4 - Stack Overflow](https://i.stack.imgur.com/gMFT4.png)