Is there a way for an iOS app to detect if it is being mirrored to a Mac using a new iPhone Mirroring feature, introduced in iOS 18 and macOS 15 Sequoia?
I believe there are a dozen use-cases an app developer may want to know such a thing. For example, imagine rewarding a user for performing some tasks. Performing a task using iPhone Mirroring would give some users advantage, which would have to be weighted in.
There isn’t a way to explicitly check for that case. I can’t think of ways that you might work this out implicitly, but that isn’t a good idea because such things can change over time. So, I encourage you to file an enhancement request for an API to check for this explicitly.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"