I've tried this in Xcode 12.4 and AppCode 2020.3.4. It appears extensions are not supported, so this is a feature request to add support for extensions.
Notice when I attempt to create FooSpy, the extension to Foo is ignored.
class Foo {
func faa(){ }
}
extension Foo {
func laa() { }
}
class FooSpy: Foo {
var invokedFaa = false
var invokedFaaCount = 0
override func faa() {
invokedFaa = true
invokedFaaCount += 1
}
}
I've tried this in Xcode 12.4 and AppCode 2020.3.4. It appears extensions are not supported, so this is a feature request to add support for extensions.
Notice when I attempt to create
FooSpy
, the extension toFoo
is ignored.