Open mkkroliks opened 6 years ago
Generic classes are not visible to the Objective-C runtime which injection uses so this is not possible. You could argue a concrete non-generic subclass should be represented somehow but that’s more of a Swift bug.
@johnno1962 thanks for answer, that makes sense!
Hey I just realized that injection doesn't work when I subclass view controller from generic view controller. I have a file like this.
When I subclass like this it's doesn't reload and I'm getting following output:
`Compiling /Users/mk/proexe/dogWalkTrophy-ios/DogWalkTrophy/DogWalkTrophy/Screens/Login/LoginViewController.swift
but when subclass from non generic code everything works fine:
class LoginViewController: NonGenericController {
Why is that? Anyone has some idea? Thanks!