Add supper for Extension and  Framework targets

What is this sample code below based on?

I’m somewhat on the fence about providing that much code. At the very least, I’d prefer a more general comment that refers to specific API names that the user should look into.