I'm doing this:
@implementation RootViewController
static CHHapticEngine *hapticEngine API_AVAILABLE(ios(13.0));
static CHHapticPatternPlayer *hapticPlayer API_AVAILABLE(ios(13.0));
But Xcode reports an error on the third line: "Unknown type name CHHapticPatternPlayer, did you mean CHHapticPatternKey?"
Further in my code I have this line:
hapticPlayer = [hapticEngine createPlayerWithPattern:pattern error:NULL];
And there Xcode says this error:
"Assigning to 'CHHapticPatternKey *' (aka 'NSString **') from incompatible type 'id<CHHapticPatternPlayer> _Nullable'"
Of course the pattern was first successfully initialized (code omitted here for clarity).
Might this issue be a bug in the framework?