Closed alphatroya closed 3 years ago
Resolved by using stub initializer
init?(coder: NSCoder, dependency: String) {
self.dependency = dependency
super.init(coder: coder)
}
@available(*, unavailable)
required init(coder _: NSCoder) {
fatalError("NSCoding not supported")
}
convenience init() {
fatalError("init should not be called directly")
}
XCode 11 introduced @IBSegueAction as a new way for injection dependencies in VC modules. The new way suggests using new
init(coder: ...)
constructors. It broke up the current storyboard integration trick.Is there a way to use
@Injected
property wrappers orresolvingProperties
callback in that case? Or maybe another workaround for using Storyboards alongside with IBSegueAction and Dip?