### Extension
fileprivateextension2ViewController
fileprivate extension UIView {
public func test() {
print("test")
}
}
FirstViewController(Extension **** ViewController)
→
SecondViewController(Extension **** ViewController)
→
extensionfileprivate
extensioninternal()ViewController
###
1RxSwiftRxCocoa _UIView+Rx.swift_
extension Reactive where Base: UIView {
/// Bindable sink for `hidden` property.
public var isHidden: Binder
return Binder(self.base) { view, hidden in
view.isHidden = hidden
}
}
~~~~~
extensionpublicSwiftimportTarget()1
TargetTargetTarget(public)
A TargetRxSwiftimportB TargetRxSwift
A TargetimportRXSwiftB Targetimport
Extension
**Swift**