I didn't find any solution for that and there's a good chance that it's not possible but I'll give it a try (if it's not possible I'd be very happy to get a small explanation why).
I'm trying to create a class in Swift, let's call it Foo, and I want FooChild to inherit from Foo. So far, no problems. The thing is, I want Foo to dynamically inherit "any class", maybe by generic type.
Something like
class Foo<T> : <T>{
}
class FooChild : Foo<NSObject> {
}
class FooChild2 : Foo<UIview> {
}
I want both FooChild and FooChild2 inherit from Foo, but I want foo to inherit once from NSObject, and once from UIView (used random classes for the example).
Is that possible? Even in Objective-C code that I'll bridge somehow.