Q:

Xcode how to change default code generation when binding IBOutlets from storyboard to code

When dragging an outlet from storyboard to a UIViewController using Xcode split view, it generates the corresponding outlet in code : 

When generating the outlet code it will always be referenced as weak var ... like so : 
@IBOutlet weak var titleLabel: UILabel!  

However in my project the policy is to set them private and strong like so: 
@IBOutlet private var titleLabel: UILabel! 

Is there a way to change the default code generation within Xcode to set your own rules when binding outlets?   

A:

I think can't change default code generation.  Maybe It is hardfix by algorithm in function -[IBSwiftOutletSourceCodeConnectionContext prepareToInsertSourceCode:] in IDEInterfaceBuilderKit framework.