'GCVirtualController?' has no member 'changeElement'

In the example code:-

vc.changeElement(GCInputButtonA) {

I get the error. Value of type 'GCVirtualController?' has no member 'changeElement'

I thought the vc reference was view controller but this did not work.

Any help would be great.

Thanks in advance

Replies

Hi there!

That API was re-named to -updateConfigurationForElement:configuration:

https://developer.apple.com/documentation/gamecontroller/gcvirtualcontroller/3858103-updateconfigurationforelement?language=objc